Skip to content

Commit

Permalink
chore: adds samples for publish and unpublish #330
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Dec 29, 2024
1 parent 693fb5a commit 9be4e57
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)) + `|
Expand Down
4 changes: 4 additions & 0 deletions internal/cmd/integrations/integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 2 additions & 0 deletions internal/cmd/integrations/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions internal/cmd/integrations/unpublish.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9be4e57

Please sign in to comment.