task

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func AddSubstitution(keyPath, name, alias string) int

AddSubstitution to the manifest

func DestroyConfig

func DestroyConfig(nuke bool) int

DestroyConfig for core manifest file

func Detach added in v0.9.1

func Detach(name string, keyPaths []string, targetKeyPath, description string, keepOriginal bool) int

func EvalString added in v0.5.0

func EvalString(args []string) int

EvalString returns a command that can be used with `eval`

func FetchCommands added in v0.9.0

func FetchCommands() []*cobra.Command

FetchCommands builds the nostromo command tree and returns the top level commands for execution

func Find

func Find(name string) int

Find matching commands and substitutions

func GenerateCompletions added in v0.7.0

func GenerateCompletions(sh string, cmd *cobra.Command, writeFile bool) int

GenerateCompletions for all manifest commands and nostromo itself.

func GetConfig

func GetConfig(key string) int

GetConfig reads properties from nostromo settings

func InitConfig

func InitConfig(cmd *cobra.Command) int

InitConfig of nostromo config file if not already initialized

func MoveCommand added in v0.9.3

func MoveCommand(source, dest, manifest, description string, copy bool) int

MoveCommand from one node to another

func RegenerateID added in v0.9.2

func RegenerateID(name string) int

func RemoveCommand

func RemoveCommand(keyPath string) int

RemoveCommand from the manifest

func RemoveSubstitution

func RemoveSubstitution(keyPath, alias string) int

RemoveSubstitution from the manifest

func RenameCommand added in v0.9.3

func RenameCommand(source, dest, description string) int

RenameCommand to a different name

func SetConfig

func SetConfig(key, value string) int

SetConfig updates properties for nostromo settings

func SetVersion added in v0.3.1

func SetVersion(v *version.Info)

SetVersion should be called before any task to ensure manifest is updated

func ShowConfig

func ShowConfig(asJSON bool, asYAML bool, asTree bool) int

ShowConfig for nostromo config file

func Sync added in v0.9.0

func Sync(force, keep bool, sources []string) int

func Undock added in v0.9.2

func Undock(names []string) int

Undock a manifest from nostromo installation

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL