Skip to content

Commit

Permalink
[v16] update plugin command descriptions (#44830)
Browse files Browse the repository at this point in the history
* update plugin command descriptions

* verbiage update for logging plugin clean up

Co-authored-by: Zac Bergquist <[email protected]>

---------

Co-authored-by: Steven Martin <[email protected]>
Co-authored-by: Zac Bergquist <[email protected]>
  • Loading branch information
3 people authored Jul 31, 2024
1 parent b29f53c commit 38ed5f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tool/tctl/common/plugin/okta.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
)

func (p *PluginsCommand) initInstallOkta(parent *kingpin.CmdClause) {
p.install.okta.cmd = parent.Command("okta", "Install an okta integration")
p.install.okta.cmd = parent.Command("okta", "Install an Okta integration.")
p.install.okta.cmd.
Flag("name", "Name of the plugin resource to create").
Default("okta").
Expand Down
6 changes: 3 additions & 3 deletions tool/tctl/common/plugin/plugins_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (p *PluginsCommand) Initialize(app *kingpin.Application, config *servicecfg
pluginsCommand := app.Command("plugins", "Manage Teleport plugins.").Hidden()

p.cleanupCmd = pluginsCommand.Command("cleanup", "Cleans up the given plugin type.")
p.cleanupCmd.Arg("type", "The type of plugin to cleanup. Only supports okta at present.").Required().EnumVar(&p.pluginType, string(types.PluginTypeOkta))
p.cleanupCmd.Arg("type", "The type of plugin to clean up. Only supports Okta at present.").Required().EnumVar(&p.pluginType, string(types.PluginTypeOkta))
p.cleanupCmd.Flag("dry-run", "Dry run the cleanup command. Dry run defaults to on.").Default("true").BoolVar(&p.dryRun)

p.initInstall(pluginsCommand, config)
Expand All @@ -101,7 +101,7 @@ func (p *PluginsCommand) initInstall(parent *kingpin.CmdClause, config *servicec
}

func (p *PluginsCommand) initInstallSCIM(parent *kingpin.CmdClause) {
p.install.scim.cmd = p.install.cmd.Command("scim", "Install a new SCIM integration")
p.install.scim.cmd = p.install.cmd.Command("scim", "Install a new SCIM integration.")
p.install.scim.cmd.
Flag("name", "The name of the SCIM plugin resource to create").
Default("scim").
Expand Down Expand Up @@ -130,7 +130,7 @@ func (p *PluginsCommand) initInstallSCIM(parent *kingpin.CmdClause) {
}

func (p *PluginsCommand) initDelete(parent *kingpin.CmdClause) {
p.delete.cmd = parent.Command("delete", "Remove a plugin instance")
p.delete.cmd = parent.Command("delete", "Remove a plugin instance.")
p.delete.cmd.
Arg("name", "The name of the SCIM plugin resource to delete").
StringVar(&p.delete.name)
Expand Down

0 comments on commit 38ed5f2

Please sign in to comment.