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