Skip to content

Commit

Permalink
fix: hide wrangler pages functions in the main help menu
Browse files Browse the repository at this point in the history
This hides `wrangler pages functions` in the main help menu, since it's only intended for internal usage right now. It still "works", so nothing changes in that regard. We will bring this back when we have a broader story in wrangler for functions.
  • Loading branch information
threepointone committed Jan 30, 2022
1 parent f29d0cb commit 1a86258
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/dry-panthers-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

fix: hide `wrangler functions build` in the main help menu

This hides `wrangler functions build` in the main help menu, since it's only intended for internal usage right now. It still "works", so nothing changes in that regard. We will bring this back when we have a broader story in wrangler for functions.
4 changes: 3 additions & 1 deletion packages/wrangler/src/pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,9 @@ export const pages: BuilderCallback<unknown, unknown> = (yargs) => {
}
}
)
.command("functions", "Cloudflare Pages Functions", (yargs) =>
.command("functions", false, (yargs) =>
// we hide this command from help output because
// it's not meant to be used directly right now
yargs.command(
"build [directory]",
"Compile a folder of Cloudflare Pages Functions into a single Worker",
Expand Down

0 comments on commit 1a86258

Please sign in to comment.