TUI option for task selection #1018
charudatta10
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Updated code to get task @task(default=True)
def default(ctx):
# Get a list of tasks
tasks = [task.__name__ for task in ns.tasks.values()]
# Display tasks and prompt user
for i, task_name in enumerate(tasks, 1):
print(f"{i}: {task_name}")
choice = int(input("Enter the number of your choice: "))
ctx.run(f"invoke {tasks[choice - 1]}") |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A terminal user interface to select task similar to one implemented in just using just --choose command. I had implemented ad-hoc solution as follow:
looking for native solution
Beta Was this translation helpful? Give feedback.
All reactions