mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-08 22:37:04 +08:00
Fix type
This commit is contained in:
parent
575df3ab1c
commit
744da76e7c
4
main.go
4
main.go
@ -81,7 +81,7 @@ func main() {
|
|||||||
Usage: "connection timeout",
|
Usage: "connection timeout",
|
||||||
EnvVar: "PLUGIN_TIMEOUT,SSH_TIMEOUT",
|
EnvVar: "PLUGIN_TIMEOUT,SSH_TIMEOUT",
|
||||||
},
|
},
|
||||||
cli.IntFlag{
|
cli.DurationFlag{
|
||||||
Name: "command.timeout,T",
|
Name: "command.timeout,T",
|
||||||
Usage: "command timeout",
|
Usage: "command timeout",
|
||||||
EnvVar: "PLUGIN_COMMAND_TIMEOUT,SSH_COMMAND_TIMEOUT",
|
EnvVar: "PLUGIN_COMMAND_TIMEOUT,SSH_COMMAND_TIMEOUT",
|
||||||
@ -200,7 +200,7 @@ func run(c *cli.Context) error {
|
|||||||
Host: c.StringSlice("host"),
|
Host: c.StringSlice("host"),
|
||||||
Port: c.Int("port"),
|
Port: c.Int("port"),
|
||||||
Timeout: c.Duration("timeout"),
|
Timeout: c.Duration("timeout"),
|
||||||
CommandTimeout: c.Int("command.timeout"),
|
CommandTimeout: c.Duration("command.timeout"),
|
||||||
Script: c.StringSlice("script"),
|
Script: c.StringSlice("script"),
|
||||||
ScriptStop: c.Bool("script.stop"),
|
ScriptStop: c.Bool("script.stop"),
|
||||||
Secrets: c.StringSlice("secrets"),
|
Secrets: c.StringSlice("secrets"),
|
||||||
|
Loading…
Reference in New Issue
Block a user