repl: categorize commands in help string
This commit is contained in:
parent
48f1fce93d
commit
da3c05bfe4
18
rpc/repl.go
18
rpc/repl.go
|
@ -161,19 +161,23 @@ func RunREPL(f Fluter) {
|
||||||
|
|
||||||
func printHelp() {
|
func printHelp() {
|
||||||
fmt.Println(`available commands:
|
fmt.Println(`available commands:
|
||||||
|
general
|
||||||
start start fluting
|
start start fluting
|
||||||
stop pause fluting
|
stop pause fluting
|
||||||
c <n> set number of connections per client
|
status print current task
|
||||||
a <host>:<port> set target server
|
content
|
||||||
offset <x> <y> set top-left offset
|
|
||||||
offset rand random offset for each draw
|
|
||||||
metrics toggle bandwidth reporting (may cost some performance)
|
|
||||||
|
|
||||||
i <filepath> set image
|
i <filepath> set image
|
||||||
txt <scale> <color <bgcolor> <txt> send text
|
txt <scale> <color <bgcolor> <txt> send text
|
||||||
txt [<scale> [<color> [<bgcolor>]] enter interactive text mode
|
txt [<scale> [<color> [<bgcolor>]] enter interactive text mode
|
||||||
|
draw modes
|
||||||
|
o set order (l,r,t,b,random)
|
||||||
|
of <x> <y> set top-left offset
|
||||||
|
of rand random offset for each draw
|
||||||
rgbsplit toggle RGB split effect
|
rgbsplit toggle RGB split effect
|
||||||
o set order (l,r,t,b,shuffle)`)
|
networking
|
||||||
|
c <n> set number of connections per client
|
||||||
|
a <host>:<port> set target server
|
||||||
|
metrics toggle bandwidth reporting (may cost some performance)`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// try to parse as hex-encoded RGB color,
|
// try to parse as hex-encoded RGB color,
|
||||||
|
|
Loading…
Reference in New Issue