Sfoglia il codice sorgente

tau: show all stopped tasks with keyword 'tau archive all'

dasman 1 anno fa
parent
commit
3f8ec7e67a
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      bin/tau/tau-python/tau

+ 3 - 1
bin/tau/tau-python/tau

@@ -623,7 +623,9 @@ Examples:
             if (errc := await show_archive_task(arefid, month_ts, server_name, port)) < 0:
                 return errc
         elif len(sys.argv) == 3:
-            if len(sys.argv[2]) == 4:
+            if sys.argv[2] == "all":
+                await show_deactive_tasks(None, workspace, server_name, port)
+            elif len(sys.argv[2]) == 4:
                 month = sys.argv[2]
                 month_ts = lib.util.month_to_unix(month)
                 await show_deactive_tasks(month_ts, workspace, server_name, port)