<endpoint> in command usage. #15

This commit is contained in:
Andrey Smirnov
2014-07-28 15:03:55 +04:00
parent 2c470c1535
commit bf91744078
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -35,11 +35,11 @@ func aptlyPublishDrop(cmd *commander.Command, args []string) error {
func makeCmdPublishDrop() *commander.Command { func makeCmdPublishDrop() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlyPublishDrop, Run: aptlyPublishDrop,
UsageLine: "drop <distribution> [<prefix>]", UsageLine: "drop <distribution> [[<endpoint>:]<prefix>]",
Short: "remove published repository", Short: "remove published repository",
Long: ` Long: `
Command removes whatever has been published under specified <prefix> and Command removes whatever has been published under specified <prefix>,
<distribution> name. publishing <endpoint> and <distribution> name.
Example: Example:
+1 -1
View File
@@ -8,7 +8,7 @@ import (
func makeCmdPublishRepo() *commander.Command { func makeCmdPublishRepo() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlyPublishSnapshotOrRepo, Run: aptlyPublishSnapshotOrRepo,
UsageLine: "repo <name> [<prefix>]", UsageLine: "repo <name> [[<endpoint>:]<prefix>]",
Short: "publish local repository", Short: "publish local repository",
Long: ` Long: `
Command publishes current state of local repository ready to be consumed Command publishes current state of local repository ready to be consumed
+1 -1
View File
@@ -169,7 +169,7 @@ func aptlyPublishSnapshotOrRepo(cmd *commander.Command, args []string) error {
func makeCmdPublishSnapshot() *commander.Command { func makeCmdPublishSnapshot() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlyPublishSnapshotOrRepo, Run: aptlyPublishSnapshotOrRepo,
UsageLine: "snapshot <name> [<prefix>]", UsageLine: "snapshot <name> [[<endpoint>:]<prefix>]",
Short: "publish snapshot", Short: "publish snapshot",
Long: ` Long: `
Command publishes snapshot as Debian repository ready to be consumed Command publishes snapshot as Debian repository ready to be consumed
+1 -1
View File
@@ -103,7 +103,7 @@ func aptlyPublishSwitch(cmd *commander.Command, args []string) error {
func makeCmdPublishSwitch() *commander.Command { func makeCmdPublishSwitch() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlyPublishSwitch, Run: aptlyPublishSwitch,
UsageLine: "switch <distribution> [<prefix>] <new-snapshot>", UsageLine: "switch <distribution> [[<endpoint>:]<prefix>] <new-snapshot>",
Short: "update published repository by switching to new snapshot", Short: "update published repository by switching to new snapshot",
Long: ` Long: `
Command switches in-place published repository with new snapshot contents. All Command switches in-place published repository with new snapshot contents. All
+1 -1
View File
@@ -72,7 +72,7 @@ func aptlyPublishUpdate(cmd *commander.Command, args []string) error {
func makeCmdPublishUpdate() *commander.Command { func makeCmdPublishUpdate() *commander.Command {
cmd := &commander.Command{ cmd := &commander.Command{
Run: aptlyPublishUpdate, Run: aptlyPublishUpdate,
UsageLine: "update <distribution> [<prefix>]", UsageLine: "update <distribution> [[<endpoint>:]<prefix>]",
Short: "update published local repository", Short: "update published local repository",
Long: ` Long: `
Command re-publishes (updates) published local repository. <distribution> Command re-publishes (updates) published local repository. <distribution>