nicoloboschi opened a new pull request, #16268: URL: https://github.com/apache/pulsar/pull/16268
Master Issue: #16250 ### Motivation See the PIP for the full context. ### Modifications * Added new parameter `-f/--filename` that accepts a file to run. The file must be a simple text file with a list of commands separated by newline char. * Added new parameter `-e/--exit-on-error` to exit in case of a failure of a command. * Added new parameter `-` which means the shell will read the standard input to process commands to run * The non-interactive mode will print the progress of the processing in a fancy way. You can disable it with `-np/--no-progress` Usage examples: ``` # interactive mode ./bin/pulsar-shell # file mode ./bin/pulsar-shell -f path/to/my-file # pipe mode cat path/to/my-file | ./bin/pulsar-shell - echo "admin tenants create ten\nadmin namespaces create ten/ns" | ./bin/pulsar-shell - wget https://raw.githubusercontent.com/nicoloboschi/pulsar/e3f2fe8560c65e36ff699f7dadc803ce69794541/pulsar-client-tools/src/test/resources/test-shell-file | ./bin/pulsar-shell - ``` - [x] `doc-required` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
