mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-23 04:44:26 +00:00
parent
aa86a34b76
commit
28f8e61de8
@ -72,7 +72,7 @@ By default, GoTTY starts a web server at port 8080. Open the URL on your web bro
|
|||||||
--height value Static height of the screen, 0(default) means dynamically resize (default: 0) [$GOTTY_HEIGHT]
|
--height value Static height of the screen, 0(default) means dynamically resize (default: 0) [$GOTTY_HEIGHT]
|
||||||
--ws-origin value A regular expression that matches origin URLs to be accepted by WebSocket. No cross origin requests are acceptable by default [$GOTTY_WS_ORIGIN]
|
--ws-origin value A regular expression that matches origin URLs to be accepted by WebSocket. No cross origin requests are acceptable by default [$GOTTY_WS_ORIGIN]
|
||||||
--term value Terminal name to use on the browser, one of xterm or hterm. (default: "xterm") [$GOTTY_TERM]
|
--term value Terminal name to use on the browser, one of xterm or hterm. (default: "xterm") [$GOTTY_TERM]
|
||||||
--enable-webgl Enable WebGL renderer (default: false) [$GOTTY_ENABLE_WEBGL]
|
--enable-webgl Enable WebGL renderer (default: true) [$GOTTY_ENABLE_WEBGL]
|
||||||
--close-signal value Signal sent to the command process when gotty close it (default: SIGHUP) (default: 1) [$GOTTY_CLOSE_SIGNAL]
|
--close-signal value Signal sent to the command process when gotty close it (default: SIGHUP) (default: 1) [$GOTTY_CLOSE_SIGNAL]
|
||||||
--close-timeout value Time in seconds to force kill process after client is disconnected (default: -1) (default: -1) [$GOTTY_CLOSE_TIMEOUT]
|
--close-timeout value Time in seconds to force kill process after client is disconnected (default: -1) (default: -1) [$GOTTY_CLOSE_TIMEOUT]
|
||||||
--config value Config file path (default: "~/.gotty") [$GOTTY_CONFIG]
|
--config value Config file path (default: "~/.gotty") [$GOTTY_CONFIG]
|
||||||
|
@ -5,4 +5,4 @@
|
|||||||
* Check that cross-compilation works.
|
* Check that cross-compilation works.
|
||||||
* Ensure NEWS is up-to-date
|
* Ensure NEWS is up-to-date
|
||||||
* Ensure contributor list is up-to-date
|
* Ensure contributor list is up-to-date
|
||||||
* Ensure VERSION is set correctly in Makefile
|
* Ensure usage is correct in Makefile
|
||||||
|
@ -46,10 +46,11 @@ func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[strin
|
|||||||
})
|
})
|
||||||
case reflect.Bool:
|
case reflect.Bool:
|
||||||
flags = append(flags, &cli.BoolFlag{
|
flags = append(flags, &cli.BoolFlag{
|
||||||
Name: flagName,
|
Name: flagName,
|
||||||
Usage: flagDescription,
|
Usage: flagDescription,
|
||||||
EnvVars: []string{envName},
|
EnvVars: []string{envName},
|
||||||
Aliases: aliases,
|
Aliases: aliases,
|
||||||
|
DefaultText: field.Tag("default"),
|
||||||
})
|
})
|
||||||
case reflect.Int:
|
case reflect.Int:
|
||||||
flags = append(flags, &cli.IntFlag{
|
flags = append(flags, &cli.IntFlag{
|
||||||
|
Loading…
Reference in New Issue
Block a user