Skip to content

Commit eb8a505

Browse files
authored
Unhide long supported auth commands. (#1516)
1 parent 340ade0 commit eb8a505

File tree

5 files changed

+18
-24
lines changed

5 files changed

+18
-24
lines changed

internal/cli/cmd/auth/awscognito.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ import (
2424

2525
func newExchangeAwsCognitoCmd() *cobra.Command {
2626
cmd := &cobra.Command{
27-
Use: "exchange-aws-cognito-token",
28-
Short: "Generate a Namespace Cloud token from a AWS Cognito JWT.",
29-
Args: cobra.NoArgs,
30-
Hidden: true,
27+
Use: "exchange-aws-cognito-token",
28+
Short: "Generate a Namespace Cloud token from a AWS Cognito JWT.",
29+
Args: cobra.NoArgs,
3130
}
3231

3332
awsRegion := cmd.Flags().String("aws_region", "", "The AWS region to connect to.")
@@ -111,10 +110,9 @@ func newCognitoClient(ctx context.Context, awsProfile string) (*cognitoidentity.
111110

112111
func newTrustAwsCognitoCmd() *cobra.Command {
113112
cmd := &cobra.Command{
114-
Use: "trust-aws-cognito-identity-pool",
115-
Short: "Trust a AWS Cognito Identity pool.",
116-
Args: cobra.NoArgs,
117-
Hidden: true,
113+
Use: "trust-aws-cognito-identity-pool",
114+
Short: "Trust a AWS Cognito Identity pool.",
115+
Args: cobra.NoArgs,
118116
}
119117

120118
awsRegion := cmd.Flags().String("aws_region", "", "The AWS region to connect to.")

internal/cli/cmd/auth/circlecitoken.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ import (
1717

1818
func NewExchangeCircleCITokenCmd() *cobra.Command {
1919
cmd := &cobra.Command{
20-
Use: "exchange-circleci-token",
21-
Short: "Generate a Namespace Cloud token from a CircleCI JWT.",
22-
Args: cobra.NoArgs,
23-
Hidden: true,
20+
Use: "exchange-circleci-token",
21+
Short: "Generate a Namespace Cloud token from a CircleCI JWT.",
22+
Args: cobra.NoArgs,
2423
}
2524

2625
return fncobra.Cmd(cmd).Do(func(ctx context.Context) error {

internal/cli/cmd/auth/devtoken.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ import (
1919

2020
func NewGenerateDevTokenCmd() *cobra.Command {
2121
cmd := &cobra.Command{
22-
Use: "generate-dev-token",
23-
Short: "Generate a Namespace Cloud token for development purposes.",
24-
Args: cobra.NoArgs,
25-
Hidden: true,
22+
Use: "generate-dev-token",
23+
Short: "Generate a Namespace Cloud token for development purposes.",
24+
Args: cobra.NoArgs,
2625
}
2726

2827
outputPath := cmd.Flags().String("output_to", "", "If specified, write the access token to this path.")

internal/cli/cmd/auth/oidc.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ const (
2222

2323
func NewIssueIdTokenCmd() *cobra.Command {
2424
cmd := &cobra.Command{
25-
Use: "issue-id-token",
26-
Short: "Generate a Namespace ID token to authenticate with cloud providers.",
27-
Args: cobra.NoArgs,
28-
Hidden: true,
25+
Use: "issue-id-token",
26+
Short: "Generate a Namespace ID token to authenticate with cloud providers.",
27+
Args: cobra.NoArgs,
2928
}
3029

3130
audience := cmd.Flags().String("audience", "", "The audience of an ID token.")

internal/cli/cmd/auth/oidctoken.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ import (
1616

1717
func NewExchangeOIDCTokenCmd() *cobra.Command {
1818
cmd := &cobra.Command{
19-
Use: "exchange-oidc-token",
20-
Short: "Generate a Namespace Cloud token from a OIDC token.",
21-
Args: cobra.NoArgs,
22-
Hidden: true,
19+
Use: "exchange-oidc-token",
20+
Short: "Generate a Namespace Cloud token from a OIDC token.",
21+
Args: cobra.NoArgs,
2322
}
2423

2524
token := cmd.Flags().String("token", "", "The OIDC token to use for authentication.")

0 commit comments

Comments
 (0)