Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update plugin command descriptions #44731

Merged
merged 3 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading