mirror of
https://github.com/drone/drone-cli.git
synced 2026-01-20 18:01:34 +01:00
drone exec doesn't require auth
This commit is contained in:
parent
6d7bf4ba1d
commit
85c75982ed
@ -21,7 +21,10 @@ var ExecCmd = cli.Command{
|
||||
Name: "exec",
|
||||
Usage: "executes a local build",
|
||||
Action: func(c *cli.Context) {
|
||||
handle(c, execCmd)
|
||||
if err := execCmd(c); err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
@ -64,7 +67,7 @@ var ExecCmd = cli.Command{
|
||||
},
|
||||
}
|
||||
|
||||
func execCmd(c *cli.Context, client drone.Client) error {
|
||||
func execCmd(c *cli.Context) error {
|
||||
|
||||
cert, _ := ioutil.ReadFile(filepath.Join(
|
||||
c.String("docker-cert-path"),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user