mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
Fix UsageLines in command help.
This commit is contained in:
@@ -148,13 +148,10 @@ func aptlyMirrorUpdate(cmd *commander.Command, args []string) error {
|
||||
func makeCmdMirrorCreate() *commander.Command {
|
||||
cmd := &commander.Command{
|
||||
Run: aptlyMirrorCreate,
|
||||
UsageLine: "create",
|
||||
UsageLine: "create <name> <archive url> <distribution> [<component1> ...]",
|
||||
Short: "create new mirror of Debian repository",
|
||||
Long: `
|
||||
create only stores metadata about new mirror, and fetches Release files (it doesn't download packages)
|
||||
|
||||
ex:
|
||||
$ aptly mirror create <name> <archive url> <distribution> [<component1> ...]
|
||||
Create only stores metadata about new mirror, and fetches Release files (it doesn't download packages)
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-mirror-create", flag.ExitOnError),
|
||||
}
|
||||
@@ -185,13 +182,10 @@ ex:
|
||||
func makeCmdMirrorShow() *commander.Command {
|
||||
cmd := &commander.Command{
|
||||
Run: aptlyMirrorShow,
|
||||
UsageLine: "show",
|
||||
UsageLine: "show <name>",
|
||||
Short: "show details about remote repository mirror",
|
||||
Long: `
|
||||
show shows full information about mirror.
|
||||
|
||||
ex:
|
||||
$ aptly mirror show <name>
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-mirror-show", flag.ExitOnError),
|
||||
}
|
||||
@@ -202,13 +196,10 @@ ex:
|
||||
func makeCmdMirrorUpdate() *commander.Command {
|
||||
cmd := &commander.Command{
|
||||
Run: aptlyMirrorUpdate,
|
||||
UsageLine: "update",
|
||||
UsageLine: "update <name>",
|
||||
Short: "update packages from remote mirror",
|
||||
Long: `
|
||||
Update downloads list of packages and packages themselves.
|
||||
|
||||
ex:
|
||||
$ aptly mirror update <name>
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-mirror-update", flag.ExitOnError),
|
||||
}
|
||||
|
||||
@@ -95,13 +95,10 @@ func aptlyPublishSnapshot(cmd *commander.Command, args []string) error {
|
||||
func makeCmdPublishSnapshot() *commander.Command {
|
||||
cmd := &commander.Command{
|
||||
Run: aptlyPublishSnapshot,
|
||||
UsageLine: "snapshot",
|
||||
UsageLine: "snapshot <name> [<prefix>]",
|
||||
Short: "makes Debian repository out of snapshot",
|
||||
Long: `
|
||||
Publishes snapshot as Debian repository ready to be used by apt tools.
|
||||
|
||||
ex:
|
||||
$ aptly publish snapshot <name> [<prefix>]
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-publish-snapshot", flag.ExitOnError),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user