From bf91744078aa6e616da5ddfa0f6415c0e93fb098 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 28 Jul 2014 15:03:55 +0400 Subject: [PATCH] in command usage. #15 --- cmd/publish_drop.go | 6 +++--- cmd/publish_repo.go | 2 +- cmd/publish_snapshot.go | 2 +- cmd/publish_switch.go | 2 +- cmd/publish_update.go | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/publish_drop.go b/cmd/publish_drop.go index ed4e992e..380a26e7 100644 --- a/cmd/publish_drop.go +++ b/cmd/publish_drop.go @@ -35,11 +35,11 @@ func aptlyPublishDrop(cmd *commander.Command, args []string) error { func makeCmdPublishDrop() *commander.Command { cmd := &commander.Command{ Run: aptlyPublishDrop, - UsageLine: "drop []", + UsageLine: "drop [[:]]", Short: "remove published repository", Long: ` -Command removes whatever has been published under specified and - name. +Command removes whatever has been published under specified , +publishing and name. Example: diff --git a/cmd/publish_repo.go b/cmd/publish_repo.go index 71a15e8a..f7787dc1 100644 --- a/cmd/publish_repo.go +++ b/cmd/publish_repo.go @@ -8,7 +8,7 @@ import ( func makeCmdPublishRepo() *commander.Command { cmd := &commander.Command{ Run: aptlyPublishSnapshotOrRepo, - UsageLine: "repo []", + UsageLine: "repo [[:]]", Short: "publish local repository", Long: ` Command publishes current state of local repository ready to be consumed diff --git a/cmd/publish_snapshot.go b/cmd/publish_snapshot.go index 820f57a1..d979b01f 100644 --- a/cmd/publish_snapshot.go +++ b/cmd/publish_snapshot.go @@ -169,7 +169,7 @@ func aptlyPublishSnapshotOrRepo(cmd *commander.Command, args []string) error { func makeCmdPublishSnapshot() *commander.Command { cmd := &commander.Command{ Run: aptlyPublishSnapshotOrRepo, - UsageLine: "snapshot []", + UsageLine: "snapshot [[:]]", Short: "publish snapshot", Long: ` Command publishes snapshot as Debian repository ready to be consumed diff --git a/cmd/publish_switch.go b/cmd/publish_switch.go index a8611f3a..dcf684e0 100644 --- a/cmd/publish_switch.go +++ b/cmd/publish_switch.go @@ -103,7 +103,7 @@ func aptlyPublishSwitch(cmd *commander.Command, args []string) error { func makeCmdPublishSwitch() *commander.Command { cmd := &commander.Command{ Run: aptlyPublishSwitch, - UsageLine: "switch [] ", + UsageLine: "switch [[:]] ", Short: "update published repository by switching to new snapshot", Long: ` Command switches in-place published repository with new snapshot contents. All diff --git a/cmd/publish_update.go b/cmd/publish_update.go index 5c81ee63..4ea05636 100644 --- a/cmd/publish_update.go +++ b/cmd/publish_update.go @@ -72,7 +72,7 @@ func aptlyPublishUpdate(cmd *commander.Command, args []string) error { func makeCmdPublishUpdate() *commander.Command { cmd := &commander.Command{ Run: aptlyPublishUpdate, - UsageLine: "update []", + UsageLine: "update [[:]]", Short: "update published local repository", Long: ` Command re-publishes (updates) published local repository.