Restructure project
This commit is contained in:
25
stable/whoami.py
Normal file
25
stable/whoami.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""
|
||||
Calls the 'whoami' command
|
||||
|
||||
Theme in ~/.local/share/profanity/plugin_themes
|
||||
|
||||
[whoami]
|
||||
result=bold_magenta
|
||||
"""
|
||||
|
||||
import prof
|
||||
import getpass
|
||||
|
||||
|
||||
def _cmd_whoami():
|
||||
me = getpass.getuser()
|
||||
prof.cons_show_themed("whoami", "result", None, me)
|
||||
|
||||
|
||||
def prof_init(version, status, account_name, fulljid):
|
||||
synopsis = [ "/whoami" ]
|
||||
description = "Calls the system whoami command"
|
||||
args = []
|
||||
examples = []
|
||||
|
||||
prof.register_command("/whoami", 0, 0, synopsis, description, args, examples, _cmd_whoami)
|
||||
Reference in New Issue
Block a user