update server cli usage

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

View file

@ -38,12 +38,12 @@ var flags = []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
EnvVar: "DRONE_DEBUG", EnvVar: "DRONE_DEBUG",
Name: "debug", Name: "debug",
Usage: "start the server in debug mode", Usage: "enable server debug mode",
}, },
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_SERVER_HOST,DRONE_HOST", EnvVar: "DRONE_SERVER_HOST,DRONE_HOST",
Name: "server-host", Name: "server-host",
Usage: "server host", Usage: "server host (<scheme>://<hostname>)",
}, },
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_SERVER_ADDR", EnvVar: "DRONE_SERVER_ADDR",
@ -54,22 +54,22 @@ var flags = []cli.Flag{
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_SERVER_CERT", EnvVar: "DRONE_SERVER_CERT",
Name: "server-cert", Name: "server-cert",
Usage: "server ssl cert", Usage: "server ssl cert path",
}, },
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_SERVER_KEY", EnvVar: "DRONE_SERVER_KEY",
Name: "server-key", Name: "server-key",
Usage: "server ssl key", Usage: "server ssl key path",
}, },
cli.BoolFlag{ cli.BoolFlag{
EnvVar: "DRONE_LETS_ENCRYPT", EnvVar: "DRONE_LETS_ENCRYPT",
Name: "lets-encrypt", Name: "lets-encrypt",
Usage: "lets encrypt enabled", Usage: "enable let's encrypt",
}, },
cli.BoolFlag{ cli.BoolFlag{
EnvVar: "DRONE_QUIC", EnvVar: "DRONE_QUIC",
Name: "quic", Name: "quic",
Usage: "start the server with quic enabled", Usage: "enable quic",
}, },
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_WWW", EnvVar: "DRONE_WWW",
@ -90,7 +90,7 @@ var flags = []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
EnvVar: "DRONE_OPEN", EnvVar: "DRONE_OPEN",
Name: "open", Name: "open",
Usage: "open user registration", Usage: "enable open user registration",
}, },
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_REPO_CONFIG", EnvVar: "DRONE_REPO_CONFIG",
@ -101,12 +101,13 @@ var flags = []cli.Flag{
cli.DurationFlag{ cli.DurationFlag{
EnvVar: "DRONE_SESSION_EXPIRES", EnvVar: "DRONE_SESSION_EXPIRES",
Name: "session-expires", Name: "session-expires",
Usage: "Set the session expiration time default 72h", Usage: "set the session expiration time default 72h",
Value: time.Hour * 72, Value: time.Hour * 72,
}, },
cli.StringSliceFlag{ cli.StringSliceFlag{
EnvVar: "DRONE_ESCALATE", EnvVar: "DRONE_ESCALATE",
Name: "escalate", Name: "escalate",
Usage: "images run in privileged mode",
Value: &cli.StringSlice{ Value: &cli.StringSlice{
"plugins/docker", "plugins/docker",
"plugins/gcr", "plugins/gcr",
@ -124,7 +125,7 @@ var flags = []cli.Flag{
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_AGENT_SECRET,DRONE_SECRET", EnvVar: "DRONE_AGENT_SECRET,DRONE_SECRET",
Name: "agent-secret", Name: "agent-secret",
Usage: "agent secret passcode", Usage: "drone server-agent shared password",
}, },
cli.StringFlag{ cli.StringFlag{
EnvVar: "DRONE_SECRET_ENDPOINT", EnvVar: "DRONE_SECRET_ENDPOINT",
@ -157,28 +158,32 @@ var flags = []cli.Flag{
// resource limit parameters // resource limit parameters
// //
cli.Int64Flag{ cli.Int64Flag{
Name: "limit-mem-swap",
EnvVar: "DRONE_LIMIT_MEM_SWAP", EnvVar: "DRONE_LIMIT_MEM_SWAP",
Name: "limit-mem-swap",
Usage: "maximum swappable memory allowed in bytes",
}, },
cli.Int64Flag{ cli.Int64Flag{
Name: "limit-mem",
EnvVar: "DRONE_LIMIT_MEM", EnvVar: "DRONE_LIMIT_MEM",
Name: "limit-mem",
Usage: "maximum memory allowed in bytes",
}, },
cli.Int64Flag{ cli.Int64Flag{
Name: "limit-shm-size",
EnvVar: "DRONE_LIMIT_SHM_SIZE", EnvVar: "DRONE_LIMIT_SHM_SIZE",
Name: "limit-shm-size",
}, },
cli.Int64Flag{ cli.Int64Flag{
Name: "limit-cpu-quota",
EnvVar: "DRONE_LIMIT_CPU_QUOTA", EnvVar: "DRONE_LIMIT_CPU_QUOTA",
Name: "limit-cpu-quota",
Usage: "impose a cpu quota",
}, },
cli.Int64Flag{ cli.Int64Flag{
Name: "limit-cpu-shares",
EnvVar: "DRONE_LIMIT_CPU_SHARES", EnvVar: "DRONE_LIMIT_CPU_SHARES",
Name: "limit-cpu-shares",
Usage: "change the cpu shares",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "limit-cpu-set",
EnvVar: "DRONE_LIMIT_CPU_SET", EnvVar: "DRONE_LIMIT_CPU_SET",
Name: "limit-cpu-set",
}, },
// //
// remote parameters // remote parameters