mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] blank lines for lisibility
This commit is contained in:
parent
340f3617a2
commit
1fcffed58d
1 changed files with 5 additions and 0 deletions
|
@ -30,14 +30,19 @@ with open(ACTIONSMAP_FILE, 'r') as stream:
|
||||||
|
|
||||||
# Getting the dictionary containning what actions are possible per domain
|
# Getting the dictionary containning what actions are possible per domain
|
||||||
OPTION_TREE = yaml.safe_load(stream)
|
OPTION_TREE = yaml.safe_load(stream)
|
||||||
|
|
||||||
DOMAINS = [x for x in OPTION_TREE.keys() if not x.startswith('_')]
|
DOMAINS = [x for x in OPTION_TREE.keys() if not x.startswith('_')]
|
||||||
DOMAINS_STR = '"{}"'.format(' '.join(DOMAINS))
|
DOMAINS_STR = '"{}"'.format(' '.join(DOMAINS))
|
||||||
|
|
||||||
ACTIONS_DICT = {}
|
ACTIONS_DICT = {}
|
||||||
|
|
||||||
for domain in DOMAINS:
|
for domain in DOMAINS:
|
||||||
ACTIONS = [str for str in OPTION_TREE[domain]['actions'].keys()
|
ACTIONS = [str for str in OPTION_TREE[domain]['actions'].keys()
|
||||||
if not str.startswith('_')]
|
if not str.startswith('_')]
|
||||||
|
|
||||||
ACTIONS_STR = '"{}"'.format(' '.join(ACTIONS))
|
ACTIONS_STR = '"{}"'.format(' '.join(ACTIONS))
|
||||||
ACTIONS_DICT[domain] = ACTIONS_STR
|
ACTIONS_DICT[domain] = ACTIONS_STR
|
||||||
|
|
||||||
for action in ACTIONS:
|
for action in ACTIONS:
|
||||||
# print("yunohost", domain, action)
|
# print("yunohost", domain, action)
|
||||||
cmd = "sudo help2man \" yunohost " + domain + " " + action + " --help \" -o " + OUTPUT_DIR + "yunohost_" + domain + "_" + action
|
cmd = "sudo help2man \" yunohost " + domain + " " + action + " --help \" -o " + OUTPUT_DIR + "yunohost_" + domain + "_" + action
|
||||||
|
|
Loading…
Add table
Reference in a new issue