Skip to content

Commit

Permalink
Add long-form help for slack provider (#4766)
Browse files Browse the repository at this point in the history
  • Loading branch information
misterpantz authored Oct 18, 2024
1 parent 88ea761 commit 7620b2e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions providers/slack/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ var Config = plugin.Provider{
ConnectionTypes: []string{provider.ConnectionType},
Connectors: []plugin.Connector{
{
Name: "slack",
Use: "slack",
Short: "a Slack team",
Name: "slack",
Use: "slack",
Short: "a Slack team",
Long: `Use the slack provider to query resources in a Slack team.
Examples:
cnquery shell slack --token <api-token>
cnspec scan slack --team-id <team-id> --token <api-token>
`,
MinArgs: 0,
MaxArgs: 0,
Discovery: []string{},
Expand All @@ -27,13 +33,13 @@ var Config = plugin.Provider{
Long: "token",
Type: plugin.FlagType_String,
Default: "",
Desc: "Slack API token",
Desc: "Slack API token (To learn more, read https://mondoo.com/docs/cnspec/saas/slack/)",
},
{
Long: "team-id",
Type: plugin.FlagType_String,
Default: "",
Desc: "Team ID (required for org token)",
Desc: "Team ID (required if the token is an org token)",
},
},
},
Expand Down

0 comments on commit 7620b2e

Please sign in to comment.