Documentation ¶
Overview ¶
Package cmd implements console commands
Index ¶
- func CleanupContext()
- func InitContext(flags *flag.FlagSet) error
- func ListPackagesRefList(reflist *deb.PackageRefList) (err error)
- func LookupOption(defaultValue bool, flags *flag.FlagSet, name string) (result bool)
- func PrintPackageList(result *deb.PackageList, format string) error
- func RootCommand() *commander.Command
- func Run(cmd *commander.Command, cmdArgs []string, initContext bool) (returnCode int)
- func ShutdownContext()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupContext ¶ added in v0.9.1
func CleanupContext()
CleanupContext does partial shutdown of context
func InitContext ¶
InitContext initializes context with default settings
func ListPackagesRefList ¶
func ListPackagesRefList(reflist *deb.PackageRefList) (err error)
ListPackagesRefList shows list of packages in PackageRefList
func LookupOption ¶ added in v0.9.1
LookupOption checks boolean flag with default (usually config) and command-line setting
func PrintPackageList ¶ added in v0.9.6
func PrintPackageList(result *deb.PackageList, format string) error
PrintPackageList shows package list with specified format or default representation
func RootCommand ¶
RootCommand creates root command in command tree
Types ¶
This section is empty.
Source Files ¶
- api.go
- api_serve.go
- cmd.go
- config.go
- config_show.go
- context.go
- db.go
- db_cleanup.go
- db_recover.go
- graph.go
- mirror.go
- mirror_create.go
- mirror_drop.go
- mirror_edit.go
- mirror_list.go
- mirror_rename.go
- mirror_search.go
- mirror_show.go
- mirror_update.go
- package.go
- package_search.go
- package_show.go
- publish.go
- publish_drop.go
- publish_list.go
- publish_repo.go
- publish_snapshot.go
- publish_switch.go
- publish_update.go
- repo.go
- repo_add.go
- repo_copy.go
- repo_create.go
- repo_drop.go
- repo_edit.go
- repo_import.go
- repo_include.go
- repo_list.go
- repo_move.go
- repo_remove.go
- repo_rename.go
- repo_search.go
- repo_show.go
- run.go
- serve.go
- snapshot.go
- snapshot_create.go
- snapshot_diff.go
- snapshot_drop.go
- snapshot_filter.go
- snapshot_list.go
- snapshot_merge.go
- snapshot_pull.go
- snapshot_rename.go
- snapshot_search.go
- snapshot_show.go
- snapshot_verify.go
- task.go
- task_run.go
- version.go
Click to show internal directories.
Click to hide internal directories.