https://github.com/chentex/go-sif
go-sif
https://github.com/chentex/go-sif
file golang-application string tool
Last synced: 5 months ago
JSON representation
go-sif
- Host: GitHub
- URL: https://github.com/chentex/go-sif
- Owner: chentex
- License: mit
- Created: 2016-10-03T14:17:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-21T07:03:46.000Z (over 8 years ago)
- Last Synced: 2024-06-20T11:45:45.443Z (about 2 years ago)
- Topics: file, golang-application, string, tool
- Language: Go
- Size: 4.07 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gosif
String Into File: Insert strings into a file in a given line.
[](https://travis-ci.org/chentex/go-sif)
[](https://codecov.io/gh/chentex/go-sif/branch/master)
[](https://godoc.org/github.com/chentex/go-sif)
[](https://goreportcard.com/report/github.com/chentex/go-sif)
## Installation
Find binaries for linux and MacOS in the [releases page](https://github.com/chentex/go-sif/releases)
## Getting Started
### Insert line in a file
```bash
gosif insert -f /your/path/to/file.txt -l2 -t "The text you want to insert"
```
### Default values
```bash
-l, --line = default value will insert at the end of the file
-t, --text = default value will insert an empty line
```
## Commands Usage
### Insert
```bash
Usage:
gosif insert [flags]
Global Flags:
-f, --file string The file where you want to insert the string
-l, --line int Line where the string is going to be inserted, if omited the string will be inserted
in a new line at the end of the file. Count starts at 1. (default -1)
-t, --text string The to insert into file
```
### Version
```bash
Usage:
gosif version
```