-
Notifications
You must be signed in to change notification settings - Fork 337
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
tools/unitctl: implement application subcommand #1323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two questions, but both are non-blocking. Looks good.
Installation on a mac M series chip needs openjdk rather than java from java.com (latest is JRE 8 v 411 at the time of writing, only supports class file version 52.0) as openapi files have class file version 55.0
tools/unitctl/unitctl/src/unitctl.rs
Outdated
@@ -114,6 +114,8 @@ pub(crate) enum Commands { | |||
)] | |||
output_format: OutputFormat, | |||
}, | |||
#[command(about = "List all configured UNIT applications")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[command(about = "List all configured UNIT applications")] | |
#[command(about = "List all configured Unit applications")] |
...and we should probably check that we're consistent elsewhere in unitctl.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't say it's a suggestion!
Unit is never spelled UNIT (it's not an acronym)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits around prose, but otherwise lgtm.
I really wish the whitespace / rustfmt changes were broken into their own commits. Next time? 🙏
* application subcommand UI schema * application subcommand handler * additions to unit-client-rs to expose application API * elaborate on OpenAPI error handling * adds wasm and wasi app schemas to OpenAPI Schema * updates tools/unitctl OpenAPI library * many linter fixes * README.md updates Signed-off-by: Ava Hahn <a.hahn@f5.com>
This MR addresses #1280 and #1279 by providing a subcommand
unitctl app
that provides two options:unitctl app list
: returns a list of running applicationsunitctl app <NAME> reload
: reloads an application by nameThis MR also adds missing wasm and wasi application schemas to the OpenAPI spec.