Documentation ¶
Overview ¶
Package cli provides utilities for frizbee's CLI.
Package cli provides utilities for frizbee's CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeclareReplacerFlags ¶
DeclareReplacerFlags declares the flags common to all replacer commands. Note that `dir` is not declared here because it is command-specific.
func ProcessDirNameForBillyFS ¶
ProcessDirNameForBillyFS processes the given directory name for use with go-billy filesystems.
Types ¶
type Replacer ¶
Replacer is a common struct for implementing a CLI command that replaces files.
func (*Replacer) Logf ¶
Logf logs the given message to the given command's stderr if the command is not quiet.
func (*Replacer) ProcessOutput ¶
ProcessOutput processes the given output files. If the command is quiet, the output is discarded. If the command is a dry run, the output is written to the command's stdout. Otherwise, the output is written to the given filesystem.