TUN-3345: tunnel run accepts name of tunnel as argument
This commit is contained in:
parent
cd5bdb837e
commit
5fb938d6d6
|
@ -316,7 +316,7 @@ func runCommand(c *cli.Context) error {
|
||||||
if c.NArg() != 1 {
|
if c.NArg() != 1 {
|
||||||
return cliutil.UsageError(`"cloudflared tunnel run" requires exactly 1 argument, the ID or name of the tunnel to run.`)
|
return cliutil.UsageError(`"cloudflared tunnel run" requires exactly 1 argument, the ID or name of the tunnel to run.`)
|
||||||
}
|
}
|
||||||
tunnelID, err := uuid.Parse(c.Args().First())
|
tunnelID, err := sc.findID(c.Args().First())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "error parsing tunnel ID")
|
return errors.Wrap(err, "error parsing tunnel ID")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue