You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
325 B
Python
16 lines
325 B
Python
7 years ago
|
from yaml import load
|
||
|
|
||
|
|
||
|
def print_app(app):
|
||
|
print("* [{}]({}) - {}".format(app["name"], app["url"], app["description"]))
|
||
|
|
||
|
|
||
|
with open('cli-apps.yaml', 'r') as yf:
|
||
|
data = load(yf)
|
||
|
# print(data)
|
||
|
apps = data["apps"]
|
||
|
for cat in apps:
|
||
|
print(cat)
|
||
|
for app in apps[cat]:
|
||
|
print_app(app)
|