tests/jetcli/main.go

31 lines
922 B
Go

package main
import (
"flag"
"tests/cmd/jetcli/methods"
)
var (
method = flag.String("method", "", "biz method")
args = methods.Args{
URL: flag.String("url", "127.0.0.1:80", "jet address"),
AuthUser: flag.String("auth_user", "nobody", "jet user"),
AuthPassword: flag.String("auth_password", "nopass", "jet password"),
PID: flag.Uint64("pid", 0, "pid"),
Name: flag.String("name", "", "name"),
UID: flag.Uint64("uid", 0, "uid"),
Email: flag.String("email", "", "email"),
TreeID: flag.String("tree_id", "", "tree_id"),
Operation: flag.Uint64("operation", 0, "operation"),
Quota: flag.Uint64("quota", 0, "quota"),
Mode: flag.Uint64("mode", 0, "mode"),
ToSet: flag.String("to_set", "", "to_set"),
ToUnset: flag.String("to_unset", "", "to_unset"),
}
)
func main() {
flag.Parse()
methods.Call(method, args)
}