-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve info command and introduce no-defaults flag (#1344)
- Loading branch information
1 parent
91a9371
commit 42345d0
Showing
9 changed files
with
134 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/integration/_cases/info/info-json-no-defaults.trycmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
``` | ||
$ sentry-cli info --config-status-json | ||
? success | ||
{ | ||
"config": { | ||
"org": "", | ||
"project": "", | ||
"url": "[SERVER]" | ||
}, | ||
"auth": { | ||
"type": "token", | ||
"successful": true | ||
}, | ||
"have_dsn": true | ||
} | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
``` | ||
$ sentry-cli info --config-status-json | ||
? success | ||
{ | ||
"config": { | ||
"org": "wat-org", | ||
"project": "wat-project", | ||
"url": "[SERVER]" | ||
}, | ||
"auth": { | ||
"type": "token", | ||
"successful": true | ||
}, | ||
"have_dsn": true | ||
} | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
``` | ||
$ sentry-cli info --no-defaults | ||
? success | ||
Sentry Server: [SERVER] | ||
|
||
Authentication Info: | ||
Method: Auth Token | ||
User: kamil@sentry.io | ||
Scopes: | ||
- project:read | ||
- project:releases | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters