Skip to content

Commit

Permalink
Show individual task
Browse files Browse the repository at this point in the history
  • Loading branch information
George V. Kouryachy (Fr. Br. George) committed Oct 20, 2023
1 parent 108bb97 commit 1d296a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hworker/control/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def do_config(self, arg):
)
case ["tasks"] | ["task"]:
print("\n".join(config.get_tasks_list()))
case ["task", task]:
pprint(config.get_task_info(task))
case []:
pprint(config.config())

Expand All @@ -117,6 +119,8 @@ def complete_config(self, text, line, begidx, endidx):
return self.filtertext(objnames, word, shift=delta)
case ["user"]:
return self.filtertext(config.get_uids(), word, shift=delta, quote=quote)
case ["task"]:
return self.filtertext(config.get_tasks_list(), word, shift=delta, quote=quote)

def show_objects(self, Type, *options, actual=True, flt=".*", dump=False):
print("@@", Type)
Expand Down

0 comments on commit 1d296a1

Please sign in to comment.