go-sif

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2017 License: MIT Imports: 3 Imported by: 0

README

gosif

String Into File: Insert strings into a file in a given line.

Build Status codecov GoDoc Go Report Card

Installation

Find binaries for linux and MacOS in the releases page

Getting Started

Insert line in a file
gosif insert -f /your/path/to/file.txt -l2 -t "The text you want to insert"
Default values
-l, --line = default value will insert at the end of the file
-t, --text = default value will insert an empty line

Commands Usage

Insert
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
Usage:
  gosif version

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL