34 lines
754 B
Go
34 lines
754 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
// RunHelp 帮助
|
|
func RunHelp(args ...string) error {
|
|
fmt.Println(strings.TrimSpace(usage))
|
|
return nil
|
|
}
|
|
|
|
const usage = `
|
|
Usage: saastool COMMAND [OPTIONS]
|
|
|
|
Commands:
|
|
info Saas Info
|
|
write Write user's 'bytes / uint32s / flags'
|
|
read Read user's 'bytes / uint32s / flags'
|
|
columnwrite Write columns for 'deviceid / openid' users
|
|
|
|
convert Convert data to write format
|
|
|
|
task Task commands
|
|
target Target commands
|
|
bind Bind commands
|
|
script Script commands
|
|
|
|
"help" is the default command.
|
|
|
|
Use "saastool COMMAND -help" for more information about a command.
|
|
`
|