mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-10-01 03:35:38 -04:00
panctl: Don't duplicate the commands in a list.
The commands are already stored in a dictionary holding the command and their respective help message.
This commit is contained in:
parent
758ca1fd85
commit
a5e1c59931
@ -369,23 +369,7 @@ class PanCtl:
|
||||
),
|
||||
}
|
||||
|
||||
commands = [
|
||||
"help",
|
||||
"list-servers",
|
||||
"list-devices",
|
||||
"export-keys",
|
||||
"import-keys",
|
||||
"verify-device",
|
||||
"unverify-device",
|
||||
"blacklist-device",
|
||||
"unblacklist-device",
|
||||
"start-verification",
|
||||
"cancel-verification",
|
||||
"accept-verification",
|
||||
"confirm-verification",
|
||||
"send-anyways",
|
||||
"cancel-sending",
|
||||
]
|
||||
commands = list(command_help.keys())
|
||||
|
||||
def __attrs_post_init__(self):
|
||||
self.bus = SessionBus()
|
||||
|
Loading…
Reference in New Issue
Block a user