增加saastool功能

This commit is contained in:
2025-04-01 20:06:06 +08:00
parent 1793e2c3d9
commit 942efe107d
32 changed files with 5609 additions and 236 deletions

27
cmd/saastool/help.go Normal file
View File

@@ -0,0 +1,27 @@
package main
import (
"fmt"
"strings"
)
// RunHelp 帮助
func RunHelp(args ...string) error {
fmt.Println(strings.TrimSpace(usage))
return nil
}
const usage = `
Usage: [[command] [arguments]]
The commands are:
write Write user's bytes / uint32s / flags
read Read user's bytes / uint32s / flags
"help" is the default command.
Use "saastool [command] -help" for more information about a command.
`
// strip Stripping redundant data from redis