-
Notifications
You must be signed in to change notification settings - Fork 1.1k
refactor(wrangler): convert containers and cloudchamber commands to createCommand #12071
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
base: pbd/wrangler/telemetry-event-refactor
Are you sure you want to change the base?
Conversation
|
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
be3fd85 to
e0829f5
Compare
…reateCommand Migrate containers and cloudchamber CLI commands from the legacy yargs defineCommand approach to the new createCommand pattern. This aligns these commands with the updated telemetry handling where events are dispatched directly from command handlers rather than middleware.
a073093 to
db843d1
Compare
Thanks to @vicb's feedback on GitHub, this: - Adds printBanner behaviour to suppress the Wrangler version banner in non-interactive/CI mode and when using --json flag - Adds hidden:false to all cloudchamber child commands/namespaces to override the inherited hidden:true from cloudchamberNamespace, which was preventing COMMANDS from showing in --help output
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.
After feedback from Devin AI review, this adds the missing behaviour.printBanner configuration to containersImagesListCommand and containersImagesDeleteCommand to match their cloudchamber equivalents. This ensures the banner is suppressed when using --json flag or in non-interactive/CI environments.
Migrate containers and cloudchamber CLI commands from the legacy yargs defineCommand approach to the new createCommand pattern. This aligns these commands with the updated telemetry handling where events are dispatched directly from command handlers rather than middleware.
Builds on top of #12069
A picture of a cute animal (not mandatory, but encouraged)