Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: multi workflow commands #4778

Open
oliver-sanders opened this issue Mar 28, 2022 · 0 comments
Open

cli: multi workflow commands #4778

oliver-sanders opened this issue Mar 28, 2022 · 0 comments
Labels
could be better Not exactly a bug, but not ideal.
Milestone

Comments

@oliver-sanders
Copy link
Member

Provide a nicer representation for multi-workflow commands.

Could do something Tui-style (but also colour coded) along the lines of:

$ cylc stop one two tre fou
⊚ one
● two
⊗ tre
  Error: Workflow does not exist

Consider also #3329 which should allow commands to yield a stream of messages/updates to the client, providing updates on the requested action. The intention is to do something like this (interactive mode only):

$ cylc stop one
(Ctrl+D to run in background)
● Connecting to workflow
⊚ Waiting for active tasks to complete

Combining the two:

$ cylc stop one two tre
(Ctrl+D to run in background)
⊚ one
  ● Connecting to workflow
  ⊚ Waiting for active tasks to complete
● two
  ● Connecting to workflow
  ● Waiting for active tasks to complete
⊗ tre
  ⊗ Connecting to workflow
  Error: Workflow does not exist

We can't use Urwid for this as it needs to take control over the whole terminal, however, it should be easy enough to achieve using plain old ANSI (colorama allows us to move the cursor up and down, left and right). Otherwise can use the built-in curses.

Pull requests welcome!

@oliver-sanders oliver-sanders added this to the cylc-8.x milestone Mar 28, 2022
@oliver-sanders oliver-sanders added the could be better Not exactly a bug, but not ideal. label May 6, 2022
oliver-sanders added a commit to oliver-sanders/cylc-flow that referenced this issue May 30, 2024
oliver-sanders added a commit to oliver-sanders/cylc-flow that referenced this issue May 30, 2024
oliver-sanders added a commit to oliver-sanders/cylc-flow that referenced this issue May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
could be better Not exactly a bug, but not ideal.
Projects
None yet
Development

No branches or pull requests

1 participant