Skip to content

Commit

Permalink
🧹 add help to atlassian provider (#2267)
Browse files Browse the repository at this point in the history
* 🧹 add help to atlassian provider

---------

Signed-off-by: Marius Kimmina <[email protected]>
Co-authored-by: Christoph Hartmann <[email protected]>
  • Loading branch information
mariuskimmina and chris-rock authored Oct 17, 2023
1 parent 2548c78 commit 066adec
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ cryptokey
customresources
datapath
Ddos
DIRECTORYID
dfw
dlq
ekm
Expand Down
25 changes: 22 additions & 3 deletions providers/atlassian/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,28 @@ var Config = plugin.Provider{
},
Connectors: []plugin.Connector{
{
Name: "atlassian",
Use: "atlassian",
Short: "Atlassian",
Name: "atlassian",
Use: "atlassian",
Short: "Atlassian",
Long: `atlassian is designed for querying resources within Atlassian Cloud, including Jira, Confluence, and SCIM.
Available Commands:
admin Specifies the Atlassian admin to interact with.
jira Specifies the Jira instance to interact with.
confluence Specifies the Confluence instance to interact with.
scim Specifies the SCIM instance to interact with.
Examples:
cnquery shell atlassian admin --admin-token <token>
cnquery shell atlassian jira --host <host> --user <user> --user-token <token>
cnquery shell atlassian confluence --host <host> --user <user> --user-token <token>
cnquery shell atlassian scim <directory-id> --scim-token <token>
If the ATLASSIAN_ADMIN_TOKEN environment variable is set, the admin-token flag is not required. If the ATLASSIAN_USER,
ATLASSIAN_HOST, and ATLASSIAN_USER_TOKEN environment variables are set, the user, host, and user-token flags are not required.
For scim, you receive both the token and the directory-id from atlassian when you setup an identity provider.
`,
MaxArgs: 2,
Discovery: []string{},
Flags: []plugin.Flag{
Expand Down

0 comments on commit 066adec

Please sign in to comment.