File tree Expand file tree Collapse file tree 4 files changed +26
-26
lines changed
content/docs/style-guide/components Expand file tree Collapse file tree 4 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const defs = experimental_getWranglerCommands();
1414const node = defs .subtree .get (namespace );
1515
1616if (! node || node .subtree .size === 0 ) {
17- throw new Error (` [WranglerCommands ] Namespace "${namespace }" not found ` );
17+ throw new Error (` [WranglerNamespace ] Namespace "${namespace }" not found ` );
1818}
1919
2020const definitions: NonNullable <(typeof node )[" definition" ]>[] = [];
@@ -36,7 +36,7 @@ flattenSubtree(node.subtree);
3636 definitions .map ((definition ) => {
3737 if (definition .type !== " command" ) {
3838 throw new Error (
39- ` [WranglerCommands ] Expected "command" but got "${definition .type }" for "${definition .command }" ` ,
39+ ` [WranglerNamespace ] Expected "command" but got "${definition .type }" for "${definition .command }" ` ,
4040 );
4141 }
4242 return (
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export { default as TunnelCalculator } from "./TunnelCalculator.astro";
5858export { default as Type } from "./Type.astro" ;
5959export { default as TypeScriptExample } from "./TypeScriptExample.astro" ;
6060export { default as WranglerCommand } from "./WranglerCommand.astro" ;
61- export { default as WranglerCommands } from "./WranglerCommands .astro" ;
61+ export { default as WranglerNamespace } from "./WranglerNamespace .astro" ;
6262export { default as WranglerConfig } from "./WranglerConfig.astro" ;
6363export { default as WARPReleases } from "./WARPReleases.astro" ;
6464export { default as Width } from "./Width.astro" ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ---
2+ title : WranglerNamespace
3+ styleGuide :
4+ component : WranglerNamespace
5+ ---
6+
7+ The ` WranglerNamespace ` component documents the available commands for a given namespace.
8+
9+ This is generated using the Wrangler version in the [ ` cloudflare-docs ` repository] ( https://github.com/cloudflare/cloudflare-docs/blob/production/package.json ) .
10+
11+ ## Import
12+
13+ ``` mdx
14+ import { WranglerNamespace } from " ~/components" ;
15+ ```
16+
17+ ## Usage
18+
19+ ``` mdx live
20+ import { WranglerNamespace } from " ~/components" ;
21+
22+ <WranglerNamespace namespace = " d1" />
23+ ```
You can’t perform that action at this time.
0 commit comments