jp (shell): added "whoami" command to print currently used profile

This commit is contained in:
Goffi 2017-07-06 20:35:21 +02:00
commit 04b274a87b

View file

@ -242,6 +242,10 @@ class Shell(base.CommandBase, cmd.Cmd):
if self.verbose:
self.disp(_(u'argument {name} removed').format(name=arg))
def do_whoami(self, args):
u"""print profile currently used"""
self.disp(self.profile)
def do_quit(self, args):
u"""quit the shell"""
self.disp(_(u'good bye!'))