Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Default string // pattern for requests without abbreviations Abbreviations map[string]string // abbreviations, (ex: alias:owner/repo), stored as alias => pattern ({0} as placeholder) }
func LoadConfig ¶
type NewCommand ¶
type NewCommand struct { Version string `long:"version" env:"VERSION" description:"Override binary version to bypass manifest restriction"` Config string `` /* 129-byte string literal not displayed */ UI string `short:"u" long:"ui" env:"UI" description:"UI mode" default:"nice" choice:"nice" choice:"simple"` Debug bool `short:"d" long:"debug" env:"DEBUG" description:"Enable debug mode"` AskOnce bool `short:"a" long:"ask-once" env:"ASK_ONCE" description:"Do not retry on wrong user input, good for automation"` DisableCleanup bool `short:"D" long:"disable-cleanup" env:"DISABLE_CLEANUP" description:"Disable removing created dirs in case of failure"` Args struct { URL string `positional-arg-name:"source" required:"yes" description:"URL, abbreviation or path to layout"` Dest string `positional-arg-name:"destination" required:"yes" description:"Destination directory, will be created"` } `positional-args:"yes"` }
func (NewCommand) Execute ¶
func (cmd NewCommand) Execute([]string) error
type ShowCommand ¶
type ShowCommand struct {
ConfigFile ShowConfigFileCommand `command:"config-file" description:"location of default config file"`
}
type ShowConfigFileCommand ¶
type ShowConfigFileCommand struct { }
func (ShowConfigFileCommand) Execute ¶
func (cmd ShowConfigFileCommand) Execute([]string) error
Click to show internal directories.
Click to hide internal directories.