diff --git a/docs/docs.go b/docs/docs.go index 74e6d13..32669b7 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -56,6 +56,10 @@ Set up integrationcli with preferences: ` + getSingleLine("integrationcli prefs | integrations | ` + getSingleLine(integrations.GetExample(10)) + `| | integrations | ` + getSingleLine(integrations.GetExample(11)) + `| | integrations | ` + getSingleLine(integrations.GetExample(12)) + `| +| integrations | ` + getSingleLine(integrations.GetExample(14)) + `| +| integrations | ` + getSingleLine(integrations.GetExample(15)) + `| +| integrations | ` + getSingleLine(integrations.GetExample(16)) + `| +| integrations | ` + getSingleLine(integrations.GetExample(17)) + `| | authconfigs | ` + getSingleLine(authconfigs.GetExample(0)) + `| | authconfigs | ` + getSingleLine(authconfigs.GetExample(1)) + `| | authconfigs | ` + getSingleLine(authconfigs.GetExample(2)) + `| diff --git a/internal/cmd/integrations/integrations.go b/internal/cmd/integrations/integrations.go index 838757c..bf50793 100644 --- a/internal/cmd/integrations/integrations.go +++ b/internal/cmd/integrations/integrations.go @@ -42,6 +42,10 @@ var examples = []string{ `integrationcli integrations apply -f . --grant-permission=true --default-token`, `integrationcli integrations apply -f . --skip-connectors=true --default-token`, `integrationcli integrations create -n $name -f samples/sample.json --basic=true --default-token`, + `integrationcli integrations versions publish -n $name --default-token`, + `integrationcli integrations versions publish -n $name -s $snapshot --default-token`, + `integrationcli integrations versions unpublish -n $name --default-token`, + `integrationcli integrations versions unpublish -n $name -u $userLabel --default-token`, } func init() { diff --git a/internal/cmd/integrations/publish.go b/internal/cmd/integrations/publish.go index 91514f0..e92f153 100644 --- a/internal/cmd/integrations/publish.go +++ b/internal/cmd/integrations/publish.go @@ -97,6 +97,8 @@ var PublishVerCmd = &cobra.Command{ } return err }, + Example: `Publishes an integration vesion with the highest snapshot in SNAPHOST state: ` + GetExample(14) + ` +Publishes an integration version that matches user supplied snapshot number: ` + GetExample(15), } var latest bool diff --git a/internal/cmd/integrations/unpublish.go b/internal/cmd/integrations/unpublish.go index bee9c23..ace0e87 100644 --- a/internal/cmd/integrations/unpublish.go +++ b/internal/cmd/integrations/unpublish.go @@ -74,6 +74,8 @@ var UnPublishVerCmd = &cobra.Command{ } return err }, + Example: `Unpublishes an integration vesion with the highest snapshot in SNAPHOST state: ` + GetExample(16) + ` +Unpublishes an integration version that matches user supplied user label: ` + GetExample(17), } func init() {