From 31d0a0880537dfb520aae0e57c045a893d7faf94 Mon Sep 17 00:00:00 2001 From: Tullio Facchinetti Date: Tue, 28 Feb 2017 00:59:32 +0100 Subject: [PATCH] First commit with some few apps and basic yaml to markdown converter. --- cli-apps.yaml | 26 ++++++++++++++++++++++++++ cli2md.py | 15 +++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 cli-apps.yaml create mode 100644 cli2md.py diff --git a/cli-apps.yaml b/cli-apps.yaml new file mode 100644 index 0000000..c63bb70 --- /dev/null +++ b/cli-apps.yaml @@ -0,0 +1,26 @@ +categories: + - + label: organizers + name: Organizers and calendars + description: Todo managers, calendar managers + +apps: + organizers: + - + name: khard + url: https://github.com/lucc/khard + description: Console carddav client written in Pyhton. + - + name: TuDu + url: https://code.meskio.net/tudu/ + description: A comand line interface to manage hierarchical todos. + Each task has a title, a long text description, a deadline + (tudu warns you when the date is close), and a scheduled date. + There are categories and priorities. + - + name: TaskWarrior + url: https://taskwarrior.org/ + description: Todo manager with advanced features; + dedicated synchronization server available; + many plugins and related tools; + healthy software project. diff --git a/cli2md.py b/cli2md.py new file mode 100644 index 0000000..fac73d6 --- /dev/null +++ b/cli2md.py @@ -0,0 +1,15 @@ +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)