summaryrefslogtreecommitdiff
path: root/listcommands.py
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-07-20 10:30:10 +0200
committerSanto Cariotti <sancn@live.com>2017-07-20 10:30:10 +0200
commitbdf83e42d1bca4ffac3a03bfdbb27d06db74dc88 (patch)
treee408c50422e4159a0008c5e529a8be6308a0f445 /listcommands.py
parentb50e32c9f6436b6e7d84502586b3bd04bb7dfd6a (diff)
now there are more files
Diffstat (limited to 'listcommands.py')
-rw-r--r--listcommands.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/listcommands.py b/listcommands.py
new file mode 100644
index 0000000..136d214
--- /dev/null
+++ b/listcommands.py
@@ -0,0 +1,27 @@
+import sys
+from classes import Colors
+
+class ListCommands(object):
+
+ info = {
+ "info" : "this is stout",
+ "set" : "set a value",
+ }
+
+ commands = {
+ 'quit' : None,
+ 'clear' : None,
+ 'set' : ['user', 'host'],
+ 'get' : None
+ }
+
+ @staticmethod
+ def err(err, info = ''):
+ if err == 'keyword':
+ sys.stderr.write(Colors.red + "keyword inesistente\n" + Colors.black)
+ elif err == 'wrong':
+ sys.stderr.write(Colors.red + "sintassi comando errata\n" + Colors.black)
+ elif err == 'personal':
+ sys.stderr.write(Colors.red + str(info) + "\n" + Colors.black)
+ else:
+ pass