-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.go
27 lines (21 loc) · 1.13 KB
/
variables.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main
import kingpin "gopkg.in/alecthomas/kingpin.v2"
var version string
var buildstamp string
var hash string
var ver = "esgtools v" + version + "\n Build: " + buildstamp + "\n GIT: " + hash + "\n Copyright (c) 2016-8 eServices Greece - https://eservices-greece.com\n"
var (
app = kingpin.New("omnitool", ver)
account = kingpin.Command("account", "account")
accountUname = account.Arg("accountuname", "Account ID").Required().String()
accountPass = account.Arg("password", "Account Password").String()
accountRInfo = account.Flag("ri", "credit,tax").Short('r').String()
sms = kingpin.Command("sms", "SMS")
smsUname = sms.Arg("accountname", "Accound ID").Required().String()
smsPass = sms.Arg("password", "Account Password").String()
smsMessage = sms.Arg("message", "Message (max 159 Characters)").String()
smsSender = sms.Arg("sender", "Sender ID or Number").String()
smsRecipient = sms.Arg("recipient", "One or more phone numbers").String()
smsSend = sms.Flag("st", "Send Type: send, cost, test").Short('s').String()
config = kingpin.Command("configdump", "Dump all entries in configuration")
)