Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
import { parseArgs } from "node:util";
import { validateRegistry } from "./validate-registry";
export const runCli = async (args: string[]) => {
const { positionals } = parseArgs({
args,
allowPositionals: true,
});
const [command, registry] = positionals;
if (command === "generate-stories") {
throw Error(
"generate-stories must be run from a package-local static entrypoint such as tsx src/generate-stories.ts"
);
return;
}
if (command === "validate-registry") {
await validateRegistry(registry);
return;
}
throw Error(`Unknown command ${command}`);
};