Skip to content

chentex/go-sif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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