UNPKG

@fragment-dev/cli

Version:
60 lines (57 loc) 1.55 kB
import { FragmentCommand, require_lib } from "./chunk-UD22EIAP.js"; import { require_source } from "./chunk-M5OAS5QZ.js"; import { __toESM, init_cjs_shims } from "./chunk-7GH3YGSC.js"; // src/commands/start.ts init_cjs_shims(); var import_core = __toESM(require_lib(), 1); var import_chalk = __toESM(require_source(), 1); var Start = class extends FragmentCommand { static { this.description = "Develop your chart of accounts locally"; } static { this.examples = [ "<%= config.bin %> <%= command.id %> --file ./my-fragment-schema.json" ]; } static { this.flags = { // flag with a value (-n, --name=VALUE) port: import_core.Flags.integer({ description: "Port for schema visualizer to run on", required: false, char: "p", default: 9410 }), file: import_core.Flags.string({ description: "Path for schema JSON file. Default to fragment.jsonc", required: false, char: "f", default: "fragment.jsonc" // TODO: Update to use DEFAULT_SCHEMA_PATH constant }), "websocket-port": import_core.Flags.integer({ description: "Port for the websocket to live on that syncs changes between the CLI and visualizer" }) }; } async run() { this.log( import_chalk.default.yellow( "The local visualizer is no longer supported. Please go to https://dashboard.fragment.dev and develop your Schema directly from the FRAGMENT Dashboard" ) ); return; } }; export { Start };