client variable names
This commit is contained in:
parent
75654fb4c1
commit
1d71e8217a
@ -31,9 +31,9 @@ type ResponseBack struct {
|
||||
func main() {
|
||||
|
||||
shutdownPtr := flag.Bool("shutdown", false, "Shutdown server")
|
||||
suspendinstancePtr := flag.String("suspend-instance", "", "Instance to Suspend")
|
||||
resumeinstancePtr := flag.String("resume-instance", "", "Instance to Resume")
|
||||
addinstancePtr := flag.String("add-instance", "", "Instance to add")
|
||||
suspendPtr := flag.String("suspend", "", "Instance to Suspend")
|
||||
resumePtr := flag.String("resume", "", "Instance to Resume")
|
||||
addPtr := flag.String("add", "", "Instance to add")
|
||||
statusPtr := flag.Bool("status", false, "Check status")
|
||||
// usernamePtr := flag.String("username", "", "Set username")
|
||||
// passwordPtr := flag.String("password", "", "Set password")
|
||||
@ -52,16 +52,16 @@ func main() {
|
||||
totalflags++
|
||||
commandMap.Type = "status"
|
||||
}
|
||||
if *addinstancePtr != "" {
|
||||
if *addPtr != "" {
|
||||
totalflags++
|
||||
commandMap.Type = "add"
|
||||
commandMap.Endpoint = *addinstancePtr
|
||||
commandMap.Endpoint = *addPtr
|
||||
}
|
||||
if *suspendinstancePtr != "" {
|
||||
if *suspendPtr != "" {
|
||||
totalflags++
|
||||
commandMap.Type = "suspend"
|
||||
}
|
||||
if *resumeinstancePtr != "" {
|
||||
if *resumePtr != "" {
|
||||
totalflags++
|
||||
commandMap.Type = "resume"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user