Update command usage.

This commit is contained in:
Andrey Smirnov
2014-07-28 19:17:21 +04:00
parent 04bd9929e1
commit 60fa0aa68e
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -8,10 +8,10 @@ import (
func makeCmdRepoCopy() *commander.Command { func makeCmdRepoCopy() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlyRepoMoveCopyImport, Run: aptlyRepoMoveCopyImport,
UsageLine: "copy <src-name> <dst-name> <package-spec> ...", UsageLine: "copy <src-name> <dst-name> <package-query> ...",
Short: "copy packages between local repositories", Short: "copy packages between local repositories",
Long: ` Long: `
Command copy copies packages matching <package-spec> from local repo Command copy copies packages matching <package-query> from local repo
<src-name> to local repo <dst-name>. <src-name> to local repo <dst-name>.
Example: Example:
+2 -2
View File
@@ -8,10 +8,10 @@ import (
func makeCmdRepoImport() *commander.Command { func makeCmdRepoImport() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlyRepoMoveCopyImport, Run: aptlyRepoMoveCopyImport,
UsageLine: "import <src-mirror> <dst-repo> <package-spec> ...", UsageLine: "import <src-mirror> <dst-repo> <package-query> ...",
Short: "import packages from mirror to local repository", Short: "import packages from mirror to local repository",
Long: ` Long: `
Command import looks up packages matching <package-spec> in mirror <src-mirror> Command import looks up packages matching <package-query> in mirror <src-mirror>
and copies them to local repo <dst-repo>. and copies them to local repo <dst-repo>.
Example: Example:
+2 -2
View File
@@ -171,10 +171,10 @@ func aptlyRepoMoveCopyImport(cmd *commander.Command, args []string) error {
func makeCmdRepoMove() *commander.Command { func makeCmdRepoMove() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlyRepoMoveCopyImport, Run: aptlyRepoMoveCopyImport,
UsageLine: "move <src-name> <dst-name> <package-spec> ...", UsageLine: "move <src-name> <dst-name> <package-query> ...",
Short: "move packages between local repositories", Short: "move packages between local repositories",
Long: ` Long: `
Command move moves packages matching <package-spec> from local repo Command move moves packages matching <package-query> from local repo
<src-name> to local repo <dst-name>. <src-name> to local repo <dst-name>.
Example: Example:
+2 -2
View File
@@ -71,10 +71,10 @@ func aptlyRepoRemove(cmd *commander.Command, args []string) error {
func makeCmdRepoRemove() *commander.Command { func makeCmdRepoRemove() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlyRepoRemove, Run: aptlyRepoRemove,
UsageLine: "remove <name> <package-spec> ...", UsageLine: "remove <name> <package-query> ...",
Short: "remove packages from local repository", Short: "remove packages from local repository",
Long: ` Long: `
Commands removes packages matching <package-spec> from local repository Commands removes packages matching <package-query> from local repository
<name>. If removed packages are not referenced by other repos or <name>. If removed packages are not referenced by other repos or
snapshots, they can be removed completely (including files) by running snapshots, they can be removed completely (including files) by running
'aptly db cleanup'. 'aptly db cleanup'.
+2 -2
View File
@@ -149,14 +149,14 @@ func aptlySnapshotPull(cmd *commander.Command, args []string) error {
func makeCmdSnapshotPull() *commander.Command { func makeCmdSnapshotPull() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlySnapshotPull, Run: aptlySnapshotPull,
UsageLine: "pull <name> <source> <destination> <package-name> ...", UsageLine: "pull <name> <source> <destination> <package-query> ...",
Short: "pull packages from another snapshot", Short: "pull packages from another snapshot",
Long: ` Long: `
Command pull pulls new packages along with its' dependencies to snapshot <name> Command pull pulls new packages along with its' dependencies to snapshot <name>
from snapshot <source>. Pull can upgrade package version in <name> with from snapshot <source>. Pull can upgrade package version in <name> with
versions from <source> following dependencies. New snapshot <destination> versions from <source> following dependencies. New snapshot <destination>
is created as a result of this process. Packages could be specified simply is created as a result of this process. Packages could be specified simply
as 'package-name' or as dependency 'package-name (>= version)'. as 'package-name' or as package queries.
Example: Example: