package
0.9.0
Repository: https://github.com/smallstep/cli-utils.git
Documentation: pkg.go.dev

# Functions

AppendNewLine appends the given data at the end of the file.
FileError is a wrapper for errors of the os package.
OpenFile calls os.OpenFile method and returns the os.File wrapped.
PrependLine prepends the given line into the given filename and removes other instances of the line in the file.
RemoveLine removes a single line which contains the given substring from the given file.
WriteFile wraps ioutil.WriteFile with a prompt to overwrite a file if the file exists.
WriteSnippet writes the given data into the given filename.

# Variables

ErrFileExists is the error returned if a file exists.
ErrIsDir is the error returned if the file is a directory.
SnippetFooter is the header of a step generated snippet in a configuration file.
SnippetHeader is the header of a step generated snippet in a configuration file.

# Structs

File represents a wrapper on os.File that supports read, write, seek and close methods, but they won't be called if an error occurred before.