update agent cli usage

This commit is contained in:
Tony Li 2018-01-29 19:00:14 -05:00
parent 75150d4a42
commit e1a695bd04
No known key found for this signature in database
GPG key ID: E73DA11CDB50D072

View file

@ -45,7 +45,7 @@ func main() {
cli.BoolTFlag{ cli.BoolTFlag{
EnvVar: "DRONE_DEBUG", EnvVar: "DRONE_DEBUG",
Name: "debug", Name: "debug",
Usage: "start the agent in debug mode", Usage: "enable agent debug mode",
}, },
cli.BoolFlag{ cli.BoolFlag{
EnvVar: "DRONE_DEBUG_PRETTY", EnvVar: "DRONE_DEBUG_PRETTY",
@ -60,36 +60,39 @@ func main() {
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_HOSTNAME,HOSTNAME", EnvVar: "DRONE_HOSTNAME,HOSTNAME",
Name: "hostname", Name: "hostname",
Usage: "agent hostname",
}, },
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_PLATFORM", EnvVar: "DRONE_PLATFORM",
Name: "platform", Name: "platform",
Usage: "restrict builds by platform conditions",
Value: "linux/amd64", Value: "linux/amd64",
}, },
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_FILTER", EnvVar: "DRONE_FILTER",
Name: "filter", Name: "filter",
Usage: "filter expression used to restrict builds by label", Usage: "filter expression to restrict builds by label",
}, },
cli.IntFlag{ cli.IntFlag{
EnvVar: "DRONE_MAX_PROCS", EnvVar: "DRONE_MAX_PROCS",
Name: "max-procs", Name: "max-procs",
Usage: "agent parallel builds",
Value: 1, Value: 1,
}, },
cli.BoolTFlag{ cli.BoolTFlag{
EnvVar: "DRONE_HEALTHCHECK", EnvVar: "DRONE_HEALTHCHECK",
Name: "healthcheck", Name: "healthcheck",
Usage: "enables the healthcheck endpoint", Usage: "enable healthcheck endpoint",
}, },
cli.DurationFlag{ cli.DurationFlag{
EnvVar: "DRONE_KEEPALIVE_TIME", EnvVar: "DRONE_KEEPALIVE_TIME",
Name: "keepalive-time", Name: "keepalive-time",
Usage: "after a duration of this time if the agent doesn't see any activity it pings the server to see if the transport is still alive", Usage: "after a duration of this time of no activity, the agent pings the server to check if the transport is still alive",
}, },
cli.DurationFlag{ cli.DurationFlag{
EnvVar: "DRONE_KEEPALIVE_TIMEOUT", EnvVar: "DRONE_KEEPALIVE_TIMEOUT",
Name: "keepalive-timeout", Name: "keepalive-timeout",
Usage: "after having pinged for keepalive check, the client waits for a duration of Timeout and if no activity is seen even after that the connection is closed.", Usage: "after pinging for a keepalive check, the agent waits for a duration of this time before closing the connection if no activity",
Value: time.Second * 20, Value: time.Second * 20,
}, },
} }