commands

package
v0.0.0-...-76e645c Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// File-spec commands.
	SpecCommand = "specCommand"
	Search      = "search"
	Download    = "download"
	Upload      = "upload"
	Move        = "move"
	Copy        = "copy"
	Delete      = "delete"
	SetProps    = "setProps"

	// General keys.
	Pattern          = "pattern"
	Aql              = "aql"
	SpecType         = "specType"
	Target           = "target"
	Props            = "props"
	ExcludeProps     = "excludeProps"
	Recursive        = "recursive"
	Exclusions       = "exclusions"
	ArchiveEntries   = "archiveEntries"
	Build            = "build"
	Bundle           = "bundle"
	SortBy           = "sortBy"
	SortOrder        = "sortOrder"
	Asc              = "asc"
	Desc             = "desc"
	Limit            = "limit"
	Offset           = "offset"
	Flat             = "flat"
	ValidateSymlinks = "validateSymlinks"
	Regexp           = "regexp"
)

Variables

View Source
var DownloadBuildBundleOptionalKeys = []string{
	Target, Props, ExcludeProps, Recursive, Exclusions, ArchiveEntries, SortBy, SortOrder, Flat,
}
View Source
var OptionalSuggestsMap = map[string]prompt.Suggest{
	ioutils.SaveAndExit: {Text: ioutils.SaveAndExit},
	Props:               {Text: Props},
	ExcludeProps:        {Text: ExcludeProps},
	Target:              {Text: Target},
	Recursive:           {Text: Recursive},
	Exclusions:          {Text: Exclusions},
	ArchiveEntries:      {Text: ArchiveEntries},
	Build:               {Text: Build},
	Bundle:              {Text: Bundle},
	SortBy:              {Text: SortBy},
	SortOrder:           {Text: SortOrder},
	Limit:               {Text: Limit},
	Offset:              {Text: Offset},
	Flat:                {Text: Flat},
	ValidateSymlinks:    {Text: ValidateSymlinks},
	Regexp:              {Text: Regexp},
}
View Source
var SearchBuildBundleOptionalKeys = []string{
	Props, ExcludeProps, Recursive, Exclusions, ArchiveEntries, SortBy, SortOrder,
}
View Source
var UploadOptionalKeys = []string{
	Target, Props, Recursive, Exclusions, Flat,
}

Functions

func GetFileSpecGenCommand

func GetFileSpecGenCommand() components.Command

func Run

func Run(c *components.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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