예제 #1
0
파일: cli.py 프로젝트: 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_)
예제 #2
0
파일: cli.py 프로젝트: 198d/clask
def edit(args):
    slug = args.slug
    task_ = task.from_string(_get_input_from_editor(task.source(slug)))
    task.update(slug, task_)