You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: When using wrangler pubsub <subcommand>, the .epilogue() with a beta warning does not show. Instead, it does show when you use --help on second or third -level subcommands, and is invoked multiple times (once for each command in the group).
Expectation: The .epilogue(pubSubBetaWarning) is invoked once on every command under the pubsub command group
It's likely I've used .epilogue() incorrectly.
e.g.
Invoked on top-level --help multiple times
~/repos/wrangler2 (main) ✔
➜ npx wrangler@beta pubsub namespaces --help
wrangler pubsub namespaces
Manage your Pub/Sub Namespaces
Commands:
wrangler pubsub namespaces create <name> Create a new Pub/Sub Namespace
wrangler pubsub namespaces list List your existing Pub/Sub Namespaces
wrangler pubsub namespaces delete <name> Delete a Pub/Sub Namespace
wrangler pubsub namespaces describe <name> Describe a Pub/Sub Namespace
Flags:
-c, --config Path to .toml configuration file [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
👷🏽 'wrangler pubsub ...' commands are currently in private beta. If your account isn't authorized, commands will fail. Visit the Pub/Sub docs for more info: https://developers.cloudflare.com/pub-sub/
👷🏽 'wrangler pubsub ...' commands are currently in private beta. If your account isn't authorized, commands will fail. Visit the Pub/Sub docs for more info: https://developers.cloudflare.com/pub-sub/
👷🏽 'wrangler pubsub ...' commands are currently in private beta. If your account isn't authorized, commands will fail. Visit the Pub/Sub docs for more info: https://developers.cloudflare.com/pub-sub/
👷🏽 'wrangler pubsub ...' commands are currently in private beta. If your account isn't authorized, commands will fail. Visit the Pub/Sub docs for more info: https://developers.cloudflare.com/pub-sub/
Not invoked at all on a second-level or third-level command
~/repos/wrangler2 (main) ✔
➜ npx wrangler@beta pubsub namespaces list --help
wrangler pubsub namespaces list
List your existing Pub/Sub Namespaces
Flags:
-c, --config Path to .toml configuration file [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
This fix makes sure the pubsub beta warnings are logged consistently, once per help menu, through the hierarchy of its command tree.
This fix makes sure the pubsub beta warnings are logged consistently, once per help menu, through the hierarchy of its command tree.
Fixes#1370
This fix makes sure the pubsub beta warnings are logged consistently, once per help menu, through the hierarchy of its command tree.
This fix makes sure the pubsub beta warnings are logged consistently, once per help menu, through the hierarchy of its command tree.
Fixes#1370
Repository owner
moved this from Selected for development
to Done
in workers-sdkJul 4, 2022
What version of
Wrangler
are you using?[email protected]
What operating system are you using?
macOS
Describe the Bug
Problem: When using
wrangler pubsub <subcommand>
, the.epilogue()
with a beta warning does not show. Instead, it does show when you use--help
on second or third -level subcommands, and is invoked multiple times (once for each command in the group).Expectation: The
.epilogue(pubSubBetaWarning)
is invoked once on every command under thepubsub
command groupIt's likely I've used
.epilogue()
incorrectly.e.g.
Invoked on top-level --help multiple times
Not invoked at all on a second-level or third-level command
Also not invoked
The text was updated successfully, but these errors were encountered: