Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgOption ¶
type ArgOption func(ArgOptions)
ArgOption captures a tweak that can be applied to the Arg.
func OptionFileSystem ¶
func OptionFileSystem(fs FileSystem) ArgOption
OptionFileSystem allows the setting a filesystem option to configure the args.
type ArgOptions ¶
type ArgOptions interface {
SetFileSystem(FileSystem)
}
ArgOptions represents a way to set optional values to a installer option. The ArgOptions shows what options are available to change.
type Args ¶
type Args struct {
// contains filtered or unexported fields
}
Args describes command line arguments
func (*Args) AllCommands ¶
AllCommands returns all the commands.
func (*Args) CompletedCommands ¶
CompletedCommands returns all the potential completed commands
func (*Args) Directory ¶
Directory gives the directory of the current written last argument if it represents a file name being written. in case that it is not, we fall back to the current directory.
func (*Args) LastCompleted ¶
LastCompleted returns the last completed argument