1
0
mirror of https://github.com/drone/drone-cli.git synced 2026-01-27 05:18:02 +01:00

Merge pull request #99 from tonglil/secret-info

Secret info
This commit is contained in:
Brad Rydzewski 2020-04-14 23:43:51 -04:00 committed by GitHub
commit 9ba252db9d
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -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()
}