Fix args docs for admin secrets (#5127)

This commit is contained in:
qwerty287 2025-04-26 09:22:15 +03:00 committed by GitHub
parent 59dabe6525
commit bac4431d08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 15 additions and 20 deletions

View File

@ -26,10 +26,9 @@ import (
)
var secretCreateCmd = &cli.Command{
Name: "add",
Usage: "add a secret",
ArgsUsage: "[repo-id|repo-full-name]",
Action: secretCreate,
Name: "add",
Usage: "add a secret",
Action: secretCreate,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "name",

View File

@ -28,10 +28,9 @@ import (
)
var secretListCmd = &cli.Command{
Name: "ls",
Usage: "list secrets",
ArgsUsage: "[repo-id|repo-full-name]",
Action: secretList,
Name: "ls",
Usage: "list secrets",
Action: secretList,
Flags: []cli.Flag{
common.FormatFlag(tmplSecretList, true),
},

View File

@ -23,10 +23,9 @@ import (
)
var secretDeleteCmd = &cli.Command{
Name: "rm",
Usage: "remove a secret",
ArgsUsage: "[repo-id|repo-full-name]",
Action: secretDelete,
Name: "rm",
Usage: "remove a secret",
Action: secretDelete,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "name",

View File

@ -26,10 +26,9 @@ import (
)
var secretUpdateCmd = &cli.Command{
Name: "update",
Usage: "update a secret",
ArgsUsage: "[repo-id|repo-full-name]",
Action: secretUpdate,
Name: "update",
Usage: "update a secret",
Action: secretUpdate,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "name",

View File

@ -27,10 +27,9 @@ import (
)
var secretShowCmd = &cli.Command{
Name: "show",
Usage: "show secret information",
ArgsUsage: "[repo-id|repo-full-name]",
Action: secretShow,
Name: "show",
Usage: "show secret information",
Action: secretShow,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "name",