Documentation ¶
Overview ¶
Package cmd implements console commands
Index ¶
- func Fatal(err error)
- func InitContext(flags *flag.FlagSet) error
- func ListPackagesRefList(reflist *deb.PackageRefList) (err error)
- func RootCommand() *commander.Command
- func ShutdownContext()
- type AptlyContext
- func (context *AptlyContext) ArchitecturesList() []string
- func (context *AptlyContext) CollectionFactory() *deb.CollectionFactory
- func (context *AptlyContext) Config() *utils.ConfigStructure
- func (context *AptlyContext) DBPath() string
- func (context *AptlyContext) Database() (database.Storage, error)
- func (context *AptlyContext) DependencyOptions() int
- func (context *AptlyContext) Downloader() aptly.Downloader
- func (context *AptlyContext) PackagePool() aptly.PackagePool
- func (context *AptlyContext) Progress() aptly.Progress
- func (context *AptlyContext) PublishedStorage() aptly.PublishedStorage
- type FatalError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶ added in v0.5.1
func Fatal(err error)
Fatal panics and aborts execution with exit code 1
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 RootCommand ¶
RootCommand creates root command in command tree
Types ¶
type AptlyContext ¶ added in v0.5.1
type AptlyContext struct {
// contains filtered or unexported fields
}
AptlyContext is a common context shared by all commands
func (*AptlyContext) ArchitecturesList ¶ added in v0.5.1
func (context *AptlyContext) ArchitecturesList() []string
ArchitecturesList returns list of architectures fixed via command line or config
func (*AptlyContext) CollectionFactory ¶ added in v0.5.1
func (context *AptlyContext) CollectionFactory() *deb.CollectionFactory
CollectionFactory builds factory producing all kinds of collections
func (*AptlyContext) Config ¶ added in v0.5.1
func (context *AptlyContext) Config() *utils.ConfigStructure
Config loads and returns current configuration
func (*AptlyContext) DBPath ¶ added in v0.5.1
func (context *AptlyContext) DBPath() string
DBPath builds path to database
func (*AptlyContext) Database ¶ added in v0.5.1
func (context *AptlyContext) Database() (database.Storage, error)
Database opens and returns current instance of database
func (*AptlyContext) DependencyOptions ¶ added in v0.5.1
func (context *AptlyContext) DependencyOptions() int
DependencyOptions calculates options related to dependecy handling
func (*AptlyContext) Downloader ¶ added in v0.5.1
func (context *AptlyContext) Downloader() aptly.Downloader
Downloader returns instance of current downloader
func (*AptlyContext) PackagePool ¶ added in v0.5.1
func (context *AptlyContext) PackagePool() aptly.PackagePool
PackagePool returns instance of PackagePool
func (*AptlyContext) Progress ¶ added in v0.5.1
func (context *AptlyContext) Progress() aptly.Progress
Progress creates or returns Progress object
func (*AptlyContext) PublishedStorage ¶ added in v0.5.1
func (context *AptlyContext) PublishedStorage() aptly.PublishedStorage
PublishedStorage returns instance of PublishedStorage
type FatalError ¶ added in v0.5.1
FatalError is type for panicking to abort execution with non-zero exit code and print meaningful explanation
Source Files ¶
- cmd.go
- context.go
- db.go
- db_cleanup.go
- db_recover.go
- graph.go
- mirror.go
- mirror_create.go
- mirror_drop.go
- mirror_list.go
- mirror_show.go
- mirror_update.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_list.go
- repo_move.go
- repo_remove.go
- repo_show.go
- serve.go
- snapshot.go
- snapshot_create.go
- snapshot_diff.go
- snapshot_drop.go
- snapshot_list.go
- snapshot_merge.go
- snapshot_pull.go
- snapshot_show.go
- snapshot_verify.go
- version.go