Beispiel #1
0
Datei: cli.py Projekt: 198d/clask
def add(args):
    slug = args.slug
    task_template = "slug: {0}\ntitle: {0}\ndescription: [insert description]\n" \
        "state: unstarted\n"
    task_ = task.from_string(_get_input_from_editor(
        task_template.format(slug)))

    task.add(slug, task_)
Beispiel #2
0
Datei: cli.py Projekt: 198d/clask
def edit(args):
    slug = args.slug
    task_ = task.from_string(_get_input_from_editor(task.source(slug)))
    task.update(slug, task_)