Skip to content
Snippets Groups Projects
Commit 688cbb2f authored by Seblu's avatar Seblu
Browse files

command settag

parent 0c55d50e
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ class Command(object):
def cmd_history(self, argv):
'''Show history of commands'''
if not self.printer.history:
raise cmdError("History is not available")
raise cmdError("not available")
for l in self.printer.history:
self.printer.out(l)
cmd_history.usage = "history"
......@@ -292,6 +292,17 @@ class Command(object):
self.printer.out("%s: %ss"%(o["a"],o["con"]))
cmd_uptime.usage = "uptime [login]"
def cmd_settag(self, argv):
'''Set tag on account'''
if len(argv) != 4:
raise cmdBadArgument()
try:
self.cli.rpc.settag(argv[1], argv[2], argv[3])
except RpcError as e:
raise cmdError("RPCError: %s"%str(e))
cmd_settag.usage = "settag <account> <tag> <value>"
class Alias(dict):
''' Alias wrapper'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment