Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions src/components/WranglerCommand.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,14 @@ let { command, headingLevel, description } = props.parse(Astro.props);
const definition = getCommand(command);

description ??= definition.metadata.description;
// will be appended after the main description, if present
const epilogue = definition.metadata.epilogue;

// CED-192 - some commands are experimental and need to be marked as such
let experimental = false;
if (definition.metadata.status === "experimental") {
experimental = true;
}
const experimental = definition.metadata.status === "experimental";

// CED-191 some commands are present but marked as "hidden" and shouldn't be shown
let hidden = false;

if (definition.metadata.hidden) {
hidden = true;
}

if (hidden) {
throw new Error(
`[WranglerCommand] "${command}" is marked as hidden. If you want to publish, fix upstream in workers-sdk repo.`
);
Expand Down Expand Up @@ -90,6 +83,8 @@ if (slotContent) {
}
<Fragment set:html={marked.parse(description)} />

{epilogue && <Fragment set:html={marked.parse(epilogue)} />}

<PackageManagers
pkg="wrangler"
type="exec"
Expand Down