Explorar o código

bin/tau-python: [WIP] show task title on creation

Dastan-glitch %!s(int64=2) %!d(string=hai) anos
pai
achega
856ab6cf0a
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      bin/tau/tau-python/main.py

+ 2 - 3
bin/tau/tau-python/main.py

@@ -55,8 +55,8 @@ async def add_task(task_args):
         print("Abort adding the task due to empty description.")
         exit(-1)
 
-    id = await api.add_task(task)
-    print(f"Created task {id}.")
+    if await api.add_task(task):
+        print(f"Created task '{title}'.")
 
 def prompt_text(comment_lines):
     temp = tempfile.NamedTemporaryFile()
@@ -98,7 +98,6 @@ def prompt_comment_text():
 def set_task_attr(task, attr, val):
     # templ = lib.util.task_template
     assert attr in ["desc", "rank", "due", "project"]
-    print(attr)
     # assert templ[attr] != list
 
     if val.lower() == "none":