-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix example flag names #1630
fix example flag names #1630
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1630 +/- ##
=======================================
Coverage 86.75% 86.75%
=======================================
Files 114 114
Lines 16661 16661
=======================================
Hits 14454 14454
Misses 1318 1318
Partials 889 889 ☔ View full report in Codecov by Sentry. |
@@ -1069,7 +1069,7 @@ func newAddOrganizationTokenDeploymentRole(out io.Writer) *cobra.Command { | |||
cmd := &cobra.Command{ | |||
Use: "add [ORG_TOKEN_ID]", | |||
Short: "Add an Organization API token to a Deployment", | |||
Long: "Add an Organization API token to a Deployment\n$astro deployment token organization-token add [ORG_TOKEN_ID] --name [token name] --role [DEPLOYMENT_ADMIN or a custom role name].", | |||
Long: "Add an Organization API token to a Deployment\n$astro deployment token organization-token add [ORG_TOKEN_ID] --org-token-name [token name] --role [DEPLOYMENT_ADMIN or a custom role name].", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any unit tests we can add for these?
cmd/cloud/workspace.go
Outdated
@@ -457,7 +457,7 @@ func newRemoveOrganizationTokenWorkspaceRole(out io.Writer) *cobra.Command { | |||
cmd := &cobra.Command{ | |||
Use: "remove [ORG_TOKEN_ID]", | |||
Short: "Remove an Workspace API token's Deployment Role", | |||
Long: "Remove an Workspace API token's Deployment Role\n$astro workspace token organization-token remove [ORG_TOKEN_ID] --name [token name].", | |||
Long: "Remove an Workspace API token's Deployment Role\n$astro workspace token organization-token remove [ORG_TOKEN_ID] --org-token-name [token name].", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct? The function name is different from what we are calling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was not good eyes. Should be good now.
cmd/cloud/workspace.go
Outdated
Short: "Remove an Workspace API token's Deployment Role", | ||
Long: "Remove an Workspace API token's Deployment Role\n$astro workspace token organization-token remove [ORG_TOKEN_ID] --name [token name].", | ||
Short: "Remove an Organization API token's Workspace Role", | ||
Long: "Remove an Organization API token's Workspace Role\n$astro workspace token organization-token remove [ORG_TOKEN_ID] --org-token-name [token name].", | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
return removeWorkspaceTokenFromDeploymentRole(cmd, args, out) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need updating too then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep done.
Description
Fixes the flag name of used in the example text for the deployment token management
🎟 Issue(s)
Related #XXX
🧪 Functional Testing
📸 Screenshots
📋 Checklist
make test
before taking out of draftmake lint
before taking out of draft