mirror of
https://github.com/drone/drone-cli.git
synced 2026-01-27 05:18:02 +01:00
commit
9ba252db9d
@ -1,6 +1,7 @@
|
||||
package secret
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"html/template"
|
||||
"os"
|
||||
|
||||
@ -37,6 +38,9 @@ func secretInfo(c *cli.Context) error {
|
||||
repoName = c.String("repository")
|
||||
format = c.String("format") + "\n"
|
||||
)
|
||||
if secretName == "" {
|
||||
return errors.New("Missing secret name")
|
||||
}
|
||||
if repoName == "" {
|
||||
repoName = c.Args().First()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user