Documentation ¶
Index ¶
- func AddCommand(keyPath, command, description, code, language string, aliasOnly bool, ...) int
- func AddInteractive() int
- func AddSubstitution(keyPath, name, alias string) int
- func DestroyConfig(nuke bool) int
- func Detach(name string, keyPaths []string, targetKeyPath, description string, ...) int
- func EvalString(args []string) int
- func FetchCommands() []*cobra.Command
- func Find(name string) int
- func GenerateCompletions(sh string, cmd *cobra.Command, writeFile bool) int
- func GetConfig(key string) int
- func InitConfig(cmd *cobra.Command) int
- func MoveCommand(source, dest, manifest, description string, copy bool) int
- func RegenerateID(name string) int
- func RemoveCommand(keyPath string) int
- func RemoveSubstitution(keyPath, alias string) int
- func RenameCommand(source, dest, description string) int
- func SetConfig(key, value string) int
- func SetVersion(v *version.Info)
- func ShowConfig(asJSON bool, asYAML bool, asTree bool) int
- func Sync(force, keep bool, sources []string) int
- func Undock(names []string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
func AddCommand(keyPath, command, description, code, language string, aliasOnly bool, mode string, update bool) int
AddCommand to the manifest
func AddInteractive ¶ added in v0.6.0
func AddInteractive() int
AddInteractive adds a command or substitution through user prompts
func AddSubstitution ¶
AddSubstitution to the manifest
func EvalString ¶ added in v0.5.0
EvalString returns a command that can be used with `eval`
func FetchCommands ¶ added in v0.9.0
FetchCommands builds the nostromo command tree and returns the top level commands for execution
func GenerateCompletions ¶ added in v0.7.0
GenerateCompletions for all manifest commands and nostromo itself.
func InitConfig ¶
InitConfig of nostromo config file if not already initialized
func MoveCommand ¶ added in v0.9.3
MoveCommand from one node to another
func RegenerateID ¶ added in v0.9.2
func RemoveSubstitution ¶
RemoveSubstitution from the manifest
func RenameCommand ¶ added in v0.9.3
RenameCommand to a different name
func SetVersion ¶ added in v0.3.1
SetVersion should be called before any task to ensure manifest is updated
func ShowConfig ¶
ShowConfig for nostromo config file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.