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

HDDS-11837. Support executing multiple commands in Ozone CLI #7727

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Support batch mode in Ozone CLI subcommands which already have --interactive mode enabled, by adding repeatable --execute <cmd> option.

This allows running multiple commands with the same invocation, like:

ozone sh \
  --execute 'volume create /vol1' \
  --execute 'bucket create /vol1/bucket1'

Update Robot tests to utilize batch mode in few test cases.

(Initially I wanted to use input redirection. It is still supported, but Robot tests are not great with here-docs.)

Also fix a warning from TailTipWidgets when running without TTY.

https://issues.apache.org/jira/browse/HDDS-11837

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/12871125080

@adoroszlai adoroszlai self-assigned this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant