From 21013a83171142c2db462deefa088a64f2f69b82 Mon Sep 17 00:00:00 2001 From: Christoph Fiehe Date: Fri, 18 Oct 2024 21:22:12 +0200 Subject: [PATCH] Command descriptions fixed. Signed-off-by: Christoph Fiehe --- cmd/publish_source_add.go | 6 +++--- cmd/publish_source_drop.go | 2 +- cmd/publish_source_remove.go | 4 ++-- cmd/publish_source_update.go | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cmd/publish_source_add.go b/cmd/publish_source_add.go index cf2b8570..a5633460 100644 --- a/cmd/publish_source_add.go +++ b/cmd/publish_source_add.go @@ -74,16 +74,16 @@ The flag -component is mandatory. Use a comma-separated list of components, if multiple components should be modified. The number of given components must be equal to the number of given sources, e.g.: - aptly publish add -component=main,contrib wheezy wheezy-main wheezy-contrib + aptly publish source add -component=main,contrib wheezy wheezy-main wheezy-contrib Example: - $ aptly publish add -component=contrib wheezy ppa wheezy-contrib + $ aptly publish source add -component=contrib wheezy ppa wheezy-contrib This command assigns the snapshot wheezy-contrib to the component contrib and adds it to published repository revision of ppa/wheezy. `, - Flag: *flag.NewFlagSet("aptly-publish-add", flag.ExitOnError), + Flag: *flag.NewFlagSet("aptly-publish-source-add", flag.ExitOnError), } cmd.Flag.String("prefix", ".", "publishing prefix in the form of [:]") cmd.Flag.String("component", "", "component names to add (for multi-component publishing, separate components with commas)") diff --git a/cmd/publish_source_drop.go b/cmd/publish_source_drop.go index d038e0e4..d954bbf3 100644 --- a/cmd/publish_source_drop.go +++ b/cmd/publish_source_drop.go @@ -53,7 +53,7 @@ Example: $ aptly publish source drop wheezy `, - Flag: *flag.NewFlagSet("aptly-publish-revision-create", flag.ExitOnError), + Flag: *flag.NewFlagSet("aptly-publish-source-drop", flag.ExitOnError), } cmd.Flag.String("prefix", ".", "publishing prefix in the form of [:]") cmd.Flag.String("component", "", "component names to add (for multi-component publishing, separate components with commas)") diff --git a/cmd/publish_source_remove.go b/cmd/publish_source_remove.go index 5a0df7a6..a15676bb 100644 --- a/cmd/publish_source_remove.go +++ b/cmd/publish_source_remove.go @@ -73,9 +73,9 @@ multiple components should be removed, e.g.: Example: - $ aptly publish remove -component=contrib,non-free wheezy filesystem:symlink:debian + $ aptly publish source remove -component=contrib,non-free wheezy filesystem:symlink:debian `, - Flag: *flag.NewFlagSet("aptly-publish-remove", flag.ExitOnError), + Flag: *flag.NewFlagSet("aptly-publish-source-remove", flag.ExitOnError), } cmd.Flag.String("prefix", ".", "publishing prefix in the form of [:]") cmd.Flag.String("component", "", "component names to remove (for multi-component publishing, separate components with commas)") diff --git a/cmd/publish_source_update.go b/cmd/publish_source_update.go index 0dae6439..71b8b5f7 100644 --- a/cmd/publish_source_update.go +++ b/cmd/publish_source_update.go @@ -74,13 +74,13 @@ The flag -component is mandatory. Use a comma-separated list of components, if multiple components should be modified. The number of given components must be equal to the number of given sources, e.g.: - aptly publish update -component=main,contrib wheezy wheezy-main wheezy-contrib + aptly publish source update -component=main,contrib wheezy wheezy-main wheezy-contrib Example: - $ aptly publish update -component=contrib wheezy ppa wheezy-contrib + $ aptly publish source update -component=contrib wheezy ppa wheezy-contrib `, - Flag: *flag.NewFlagSet("aptly-publish-revision-source-update", flag.ExitOnError), + Flag: *flag.NewFlagSet("aptly-publish-source-update", flag.ExitOnError), } cmd.Flag.String("prefix", ".", "publishing prefix in the form of [:]") cmd.Flag.String("component", "", "component names to add (for multi-component publishing, separate components with commas)")