Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.35 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.35 KB

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