This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
help.py
63 lines (55 loc) · 2.48 KB
/
help.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
def show_usage():
return (
"USAGE: "
"\n\tteos-client [global options] command [command options] [arguments]"
"\n\nCOMMANDS:"
"\n\tregister \t\tRegisters your user public key with the tower."
"\n\tadd_appointment \tRegisters a json formatted appointment with the tower."
"\n\tget_appointment \tGets json formatted data about an appointment from the tower."
"\n\tget_subscription_info \tGets json formatted data about a user's subscription from the tower."
"\n\thelp \t\t\tShows a list of commands or help for a specific command."
"\n\nGLOBAL OPTIONS:"
"\n\t--apiconnect \tAPI server where to send the requests. Defaults to 'localhost' (modifiable in conf file)."
"\n\t--apiport \tAPI port where to send the requests. Defaults to '9814' (modifiable in conf file)."
"\n\t-d, --debug \tShows debug information."
"\n\t-h, --help \tShows this message."
)
def help_register():
return (
"NAME:"
"\n\n\tregister"
"\n\nUSAGE:"
'\n\n\tteos-client register "tower_id"'
"\n\nDESCRIPTION:"
"\n\n\tRegisters your user public key with the tower."
)
def help_add_appointment():
return (
"NAME:"
"\n\tadd_appointment - Registers a json formatted appointment to the tower."
"\n\nUSAGE:"
'\n\tteos-client add_appointment "appointment"'
'\n\tteos-client add_appointment -f "path_to_appointment_file"'
"\n\nDESCRIPTION:"
"\n\n\tRegisters a json-formatted appointment to the tower."
"\n\tIf -f, --file *is* specified, then the command expects a path to a json file instead of a json encoded "
"\n\tstring as parameter. Otherwise, the last argument is the appointment itself, encoded in json."
)
def help_get_appointment():
return (
"NAME:"
"\n\tget_appointment - Gets json formatted data about an appointment from the tower."
"\n\nUSAGE:"
'\n\tteos-client get_appointment "appointment_locator"'
"\n\nDESCRIPTION:"
"\n\n\tGets json formatted data about an appointment from the tower.\n"
)
def help_get_subscription_info():
return (
"NAME:"
"\n\tget_subscription_info - Gets json formatted data about a user's subscription from the tower."
"\n\nUSAGE:"
"\n\tteos-client get_subscription_info"
"\n\nDESCRIPTION:"
"\n\n\tGets json formatted data about a user's subscription from the tower.\n"
)