mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-02 04:50:49 +00:00
Update and fix integrated help in aptly.
This commit is contained in:
+13
-4
@@ -156,7 +156,10 @@ func makeCmdMirrorCreate() *commander.Command {
|
|||||||
UsageLine: "create <name> <archive url> <distribution> [<component1> ...]",
|
UsageLine: "create <name> <archive url> <distribution> [<component1> ...]",
|
||||||
Short: "create new mirror of Debian repository",
|
Short: "create new mirror of Debian repository",
|
||||||
Long: `
|
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),
|
Flag: *flag.NewFlagSet("aptly-mirror-create", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
@@ -170,7 +173,7 @@ func makeCmdMirrorList() *commander.Command {
|
|||||||
UsageLine: "list",
|
UsageLine: "list",
|
||||||
Short: "list mirrors of remote repositories",
|
Short: "list mirrors of remote repositories",
|
||||||
Long: `
|
Long: `
|
||||||
list shows full list of remote repositories.
|
List shows full list of remote repositories.
|
||||||
|
|
||||||
ex:
|
ex:
|
||||||
$ aptly mirror list
|
$ aptly mirror list
|
||||||
@@ -188,7 +191,10 @@ func makeCmdMirrorShow() *commander.Command {
|
|||||||
UsageLine: "show <name>",
|
UsageLine: "show <name>",
|
||||||
Short: "show details about remote repository mirror",
|
Short: "show details about remote repository mirror",
|
||||||
Long: `
|
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),
|
Flag: *flag.NewFlagSet("aptly-mirror-show", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
@@ -202,7 +208,10 @@ func makeCmdMirrorUpdate() *commander.Command {
|
|||||||
UsageLine: "update <name>",
|
UsageLine: "update <name>",
|
||||||
Short: "update packages from remote mirror",
|
Short: "update packages from remote mirror",
|
||||||
Long: `
|
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),
|
Flag: *flag.NewFlagSet("aptly-mirror-update", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-3
@@ -175,7 +175,10 @@ func makeCmdPublishSnapshot() *commander.Command {
|
|||||||
UsageLine: "snapshot <name> [<prefix>]",
|
UsageLine: "snapshot <name> [<prefix>]",
|
||||||
Short: "makes Debian repository out of snapshot",
|
Short: "makes Debian repository out of snapshot",
|
||||||
Long: `
|
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),
|
Flag: *flag.NewFlagSet("aptly-publish-snapshot", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
@@ -192,7 +195,10 @@ func makeCmdPublishDrop() *commander.Command {
|
|||||||
UsageLine: "drop <distribution> [<prefix>]",
|
UsageLine: "drop <distribution> [<prefix>]",
|
||||||
Short: "removes files of published repository",
|
Short: "removes files of published repository",
|
||||||
Long: `
|
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),
|
Flag: *flag.NewFlagSet("aptly-publish-drop", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
@@ -206,7 +212,10 @@ func makeCmdPublishList() *commander.Command {
|
|||||||
UsageLine: "list",
|
UsageLine: "list",
|
||||||
Short: "displays list of published repositories",
|
Short: "displays list of published repositories",
|
||||||
Long: `
|
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),
|
Flag: *flag.NewFlagSet("aptly-publish-list", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
|
|||||||
+26
-7
@@ -505,7 +505,11 @@ func makeCmdSnapshotCreate() *commander.Command {
|
|||||||
UsageLine: "create <name> from mirror <mirror-name>",
|
UsageLine: "create <name> from mirror <mirror-name>",
|
||||||
Short: "creates snapshot out of any mirror",
|
Short: "creates snapshot out of any mirror",
|
||||||
Long: `
|
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),
|
Flag: *flag.NewFlagSet("aptly-snapshot-create", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
@@ -520,7 +524,7 @@ func makeCmdSnapshotList() *commander.Command {
|
|||||||
UsageLine: "list",
|
UsageLine: "list",
|
||||||
Short: "lists snapshots",
|
Short: "lists snapshots",
|
||||||
Long: `
|
Long: `
|
||||||
list shows full list of snapshots created.
|
Command list shows full list of snapshots created.
|
||||||
|
|
||||||
ex:
|
ex:
|
||||||
$ aptly snapshot list
|
$ aptly snapshot list
|
||||||
@@ -537,7 +541,10 @@ func makeCmdSnapshotShow() *commander.Command {
|
|||||||
UsageLine: "show <name>",
|
UsageLine: "show <name>",
|
||||||
Short: "shows details about snapshot",
|
Short: "shows details about snapshot",
|
||||||
Long: `
|
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),
|
Flag: *flag.NewFlagSet("aptly-snapshot-show", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
@@ -553,6 +560,9 @@ func makeCmdSnapshotVerify() *commander.Command {
|
|||||||
Long: `
|
Long: `
|
||||||
Verify does depenency resolution in snapshot, possibly using additional snapshots as dependency sources.
|
Verify does depenency resolution in snapshot, possibly using additional snapshots as dependency sources.
|
||||||
All unsatisfied dependencies are returned.
|
All unsatisfied dependencies are returned.
|
||||||
|
|
||||||
|
ex.
|
||||||
|
$ aptly snapshot verify wheezy-main wheezy-contrib wheezy-non-free
|
||||||
`,
|
`,
|
||||||
Flag: *flag.NewFlagSet("aptly-snapshot-verify", flag.ExitOnError),
|
Flag: *flag.NewFlagSet("aptly-snapshot-verify", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
@@ -566,10 +576,13 @@ func makeCmdSnapshotPull() *commander.Command {
|
|||||||
UsageLine: "pull <name> <source> <destination> <package-name> ...",
|
UsageLine: "pull <name> <source> <destination> <package-name> ...",
|
||||||
Short: "performs partial upgrades (pulls new packages) from another snapshot",
|
Short: "performs partial upgrades (pulls new packages) from another snapshot",
|
||||||
Long: `
|
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
|
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
|
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),
|
Flag: *flag.NewFlagSet("aptly-snapshot-pull", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
@@ -586,7 +599,10 @@ func makeCmdSnapshotDiff() *commander.Command {
|
|||||||
UsageLine: "diff <name-a> <name-b>",
|
UsageLine: "diff <name-a> <name-b>",
|
||||||
Short: "calculates difference in packages between two snapshots",
|
Short: "calculates difference in packages between two snapshots",
|
||||||
Long: `
|
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),
|
Flag: *flag.NewFlagSet("aptly-snapshot-diff", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
@@ -604,7 +620,10 @@ func makeCmdSnapshotMerge() *commander.Command {
|
|||||||
Long: `
|
Long: `
|
||||||
Merge merges several snapshots into one. Merge happens from left to right. Packages with the same
|
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).
|
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),
|
Flag: *flag.NewFlagSet("aptly-snapshot-merge", flag.ExitOnError),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ func init() {
|
|||||||
UsageLine: os.Args[0],
|
UsageLine: os.Args[0],
|
||||||
Short: "Debian repository management tool",
|
Short: "Debian repository management tool",
|
||||||
Long: `
|
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,
|
repositories, filter them, merge, upgrade individual packages,
|
||||||
take snapshots and publish them back as Debian repositories.`,
|
take snapshots and publish them back as Debian repositories.`,
|
||||||
Flag: *flag.NewFlagSet("aptly", flag.ExitOnError),
|
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,
|
repositories, filter them, merge, upgrade individual packages,
|
||||||
take snapshots and publish them back as Debian repositories.
|
take snapshots and publish them back as Debian repositories.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
Usage: aptly mirror create <name> <archive url> <distribution> [<component1> ...]
|
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