Update CLI help for aptly publish switch. #208

This commit is contained in:
Andrey Smirnov
2015-02-21 22:32:51 +03:00
parent 642957e3a3
commit 3c34ae6071
2 changed files with 12 additions and 6 deletions
+6 -3
View File
@@ -117,7 +117,7 @@ func makeCmdPublishSwitch() *commander.Command {
UsageLine: "switch <distribution> [[<endpoint>:]<prefix>] <new-snapshot>",
Short: "update published repository by switching to new snapshot",
Long: `
Command switches in-place published repository with new snapshot contents. All
Command switches in-place published snapshots with new snapshot contents. All
publishing parameters are preserved (architecture list, distribution,
component).
@@ -125,11 +125,14 @@ For multiple component repositories, flag -component should be given with
list of components to update. Corresponding snapshots should be given in the
same order, e.g.:
aptly publish update -component=main,contrib wheezy wh-main wh-contrib
aptly publish switch -component=main,contrib wheezy wh-main wh-contrib
Example:
$ aptly publish update wheezy ppa wheezy-7.5
$ aptly publish switch wheezy ppa wheezy-7.5
This command would switch published repository (with one component) named ppa/wheezy
(prefix ppa, dsitribution wheezy to new snapshot wheezy-7.5).
`,
Flag: *flag.NewFlagSet("aptly-publish-switch", flag.ExitOnError),
}
+6 -3
View File
@@ -1281,7 +1281,7 @@ don\(cqt sign Release files with GPG
\fBaptly\fR \fBpublish\fR \fBswitch\fR \fIdistribution\fR [[\fIendpoint\fR:]\fIprefix\fR] \fInew\-snapshot\fR
.
.P
Command switches in\-place published repository with new snapshot contents\. All publishing parameters are preserved (architecture list, distribution, component)\.
Command switches in\-place published snapshots with new snapshot contents\. All publishing parameters are preserved (architecture list, distribution, component)\.
.
.P
For multiple component repositories, flag \-component should be given with list of components to update\. Corresponding snapshots should be given in the same order, e\.g\.:
@@ -1290,7 +1290,7 @@ For multiple component repositories, flag \-component should be given with list
.
.nf
aptly publish update \-component=main,contrib wheezy wh\-main wh\-contrib
aptly publish switch \-component=main,contrib wheezy wh\-main wh\-contrib
.
.fi
.
@@ -1303,13 +1303,16 @@ Example:
.
.nf
$ aptly publish update wheezy ppa wheezy\-7\.5
$ aptly publish switch wheezy ppa wheezy\-7\.5
.
.fi
.
.IP "" 0
.
.P
This command would switch published repository (with one component) named ppa/wheezy (prefix ppa, dsitribution wheezy to new snapshot wheezy\-7\.5)\.
.
.P
Options:
.
.TP