mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Update and fix integrated help in aptly.
This commit is contained in:
@@ -156,7 +156,10 @@ func makeCmdMirrorCreate() *commander.Command {
|
||||
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)
|
||||
Create records information about new mirror and fetches Release file (it doesn't download packages).
|
||||
|
||||
ex:
|
||||
$ aptly mirror create wheezy-main http://mirror.yandex.ru/debian/ wheezy main
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-mirror-create", flag.ExitOnError),
|
||||
}
|
||||
@@ -170,7 +173,7 @@ func makeCmdMirrorList() *commander.Command {
|
||||
UsageLine: "list",
|
||||
Short: "list mirrors of remote repositories",
|
||||
Long: `
|
||||
list shows full list of remote repositories.
|
||||
List shows full list of remote repositories.
|
||||
|
||||
ex:
|
||||
$ aptly mirror list
|
||||
@@ -188,7 +191,10 @@ func makeCmdMirrorShow() *commander.Command {
|
||||
UsageLine: "show <name>",
|
||||
Short: "show details about remote repository mirror",
|
||||
Long: `
|
||||
show shows full information about mirror.
|
||||
Show shows full information about mirror.
|
||||
|
||||
ex:
|
||||
$ aptly mirror show wheezy-main
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-mirror-show", flag.ExitOnError),
|
||||
}
|
||||
@@ -202,7 +208,10 @@ func makeCmdMirrorUpdate() *commander.Command {
|
||||
UsageLine: "update <name>",
|
||||
Short: "update packages from remote mirror",
|
||||
Long: `
|
||||
Update downloads list of packages and packages themselves.
|
||||
Update downloads list of packages and package files.
|
||||
|
||||
ex:
|
||||
$ aptly mirror update wheezy-main
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-mirror-update", flag.ExitOnError),
|
||||
}
|
||||
|
||||
@@ -175,7 +175,10 @@ func makeCmdPublishSnapshot() *commander.Command {
|
||||
UsageLine: "snapshot <name> [<prefix>]",
|
||||
Short: "makes Debian repository out of snapshot",
|
||||
Long: `
|
||||
Publishes snapshot as Debian repository ready to be used by apt tools.
|
||||
Command publish oublishes snapshot as Debian repository ready to be used by apt tools.
|
||||
|
||||
ex.
|
||||
$ aptly publish snapshot wheezy-main
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-publish-snapshot", flag.ExitOnError),
|
||||
}
|
||||
@@ -192,7 +195,10 @@ func makeCmdPublishDrop() *commander.Command {
|
||||
UsageLine: "drop <distribution> [<prefix>]",
|
||||
Short: "removes files of published repository",
|
||||
Long: `
|
||||
Removes whatever has been published under specified prefix and distribution name.
|
||||
Command removes whatever has been published under specified prefix and distribution name.
|
||||
|
||||
ex.
|
||||
$ aptly publish drop wheezy
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-publish-drop", flag.ExitOnError),
|
||||
}
|
||||
@@ -206,7 +212,10 @@ func makeCmdPublishList() *commander.Command {
|
||||
UsageLine: "list",
|
||||
Short: "displays list of published repositories",
|
||||
Long: `
|
||||
Displays list of currently published snapshots.
|
||||
Display command displays list of currently published snapshots with information about published root.
|
||||
|
||||
ex.
|
||||
$ aptly publish list
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-publish-list", flag.ExitOnError),
|
||||
}
|
||||
|
||||
@@ -505,7 +505,11 @@ func makeCmdSnapshotCreate() *commander.Command {
|
||||
UsageLine: "create <name> from mirror <mirror-name>",
|
||||
Short: "creates snapshot out of any mirror",
|
||||
Long: `
|
||||
Create makes persistent immutable snapshot of repository mirror state in givent moment of time.
|
||||
Command create makes persistent immutable snapshot of remote repository mirror. Snapshot could be
|
||||
published or further modified using merge, pull and other aptly features.
|
||||
|
||||
ex.
|
||||
$ aptly snapshot create wheezy-main-today from mirror wheezy-main
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-snapshot-create", flag.ExitOnError),
|
||||
}
|
||||
@@ -520,7 +524,7 @@ func makeCmdSnapshotList() *commander.Command {
|
||||
UsageLine: "list",
|
||||
Short: "lists snapshots",
|
||||
Long: `
|
||||
list shows full list of snapshots created.
|
||||
Command list shows full list of snapshots created.
|
||||
|
||||
ex:
|
||||
$ aptly snapshot list
|
||||
@@ -537,7 +541,10 @@ func makeCmdSnapshotShow() *commander.Command {
|
||||
UsageLine: "show <name>",
|
||||
Short: "shows details about snapshot",
|
||||
Long: `
|
||||
Show shows full information about snapshot.
|
||||
Command show displays full information about snapshot.
|
||||
|
||||
ex.
|
||||
$ aptly snapshot show wheezy-main
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-snapshot-show", flag.ExitOnError),
|
||||
}
|
||||
@@ -553,6 +560,9 @@ func makeCmdSnapshotVerify() *commander.Command {
|
||||
Long: `
|
||||
Verify does depenency resolution in snapshot, possibly using additional snapshots as dependency sources.
|
||||
All unsatisfied dependencies are returned.
|
||||
|
||||
ex.
|
||||
$ aptly snapshot verify wheezy-main wheezy-contrib wheezy-non-free
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-snapshot-verify", flag.ExitOnError),
|
||||
}
|
||||
@@ -566,10 +576,13 @@ func makeCmdSnapshotPull() *commander.Command {
|
||||
UsageLine: "pull <name> <source> <destination> <package-name> ...",
|
||||
Short: "performs partial upgrades (pulls new packages) from another snapshot",
|
||||
Long: `
|
||||
Pulls new packages along with its dependencies in <name> snapshot
|
||||
Command pull pulls new packages along with its dependencies in <name> snapshot
|
||||
from <source> snapshot. Also can upgrade package version from one snapshot into
|
||||
another, once again along with dependencies. New snapshot <destination> is created as result of this
|
||||
process.
|
||||
process. Packages could be specified simply as 'package-name' or as dependency 'package-name (>= version)'.
|
||||
|
||||
ex.
|
||||
$ aptly snapshot pull wheezy-main wheezy-backports wheezy-new-xorg xorg-server-server
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-snapshot-pull", flag.ExitOnError),
|
||||
}
|
||||
@@ -586,7 +599,10 @@ func makeCmdSnapshotDiff() *commander.Command {
|
||||
UsageLine: "diff <name-a> <name-b>",
|
||||
Short: "calculates difference in packages between two snapshots",
|
||||
Long: `
|
||||
Displays list of missing and new packages, difference in package versions between two snapshots.
|
||||
Command diff shows list of missing and new packages, difference in package versions between two snapshots.
|
||||
|
||||
ex.
|
||||
$ aptly snapshot diff -only-matching wheezy-main wheezy-backports
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-snapshot-diff", flag.ExitOnError),
|
||||
}
|
||||
@@ -604,7 +620,10 @@ func makeCmdSnapshotMerge() *commander.Command {
|
||||
Long: `
|
||||
Merge merges several snapshots into one. Merge happens from left to right. Packages with the same
|
||||
name-architecture pair are replaced during merge (package from latest snapshot on the list wins).
|
||||
If specified with only one snapshot, merge copies source into destination.
|
||||
If run with only one source snapshot, merge copies source into destination.
|
||||
|
||||
ex.
|
||||
$ aptly snapshot merge wheezy-w-backports wheezy-main wheezy-backports
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-snapshot-merge", flag.ExitOnError),
|
||||
}
|
||||
|
||||
2
main.go
2
main.go
@@ -22,7 +22,7 @@ func init() {
|
||||
UsageLine: os.Args[0],
|
||||
Short: "Debian repository management tool",
|
||||
Long: `
|
||||
aptly allows to create partial and full mirrors of remote
|
||||
aptly is a tool to create partial and full mirrors of remote
|
||||
repositories, filter them, merge, upgrade individual packages,
|
||||
take snapshots and publish them back as Debian repositories.`,
|
||||
Flag: *flag.NewFlagSet("aptly", flag.ExitOnError),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aptly allows to create partial and full mirrors of remote
|
||||
aptly is a tool to create partial and full mirrors of remote
|
||||
repositories, filter them, merge, upgrade individual packages,
|
||||
take snapshots and publish them back as Debian repositories.
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
Usage: aptly mirror create <name> <archive url> <distribution> [<component1> ...]
|
||||
|
||||
Create only stores metadata about new mirror, and fetches Release files (it doesn't download packages)
|
||||
Create records information about new mirror and fetches Release file (it doesn't download packages).
|
||||
|
||||
ex:
|
||||
$ aptly mirror create wheezy-main http://mirror.yandex.ru/debian/ wheezy main
|
||||
|
||||
|
||||
Reference in New Issue
Block a user