Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | 418x 418x 418x 418x 418x 418x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x 36x | import { bold, cyan, green, gray } from '../colors.js';
/**
* Prints the help message with available commands to the console.
*/
export function printHelp() {
console.log(`
${bold(cyan('Avenx-JS CLI'))}
${bold('Usage:')} ${green('avenx')} ${gray('<command> [type] [name]')}
${bold(cyan('Commands:'))}
${green('init')} ${gray('Initialize a new Avenx project structure')}
${green('generate component <name>')} ${gray('Generate a new component (alias: g)')}
${green('generate page <name>')} ${gray('Generate a new page (alias: g p)')}
${green('generate bridge <name>')} ${gray('Generate a new shared reactive bridge')}
${green('generate guard <name>')} ${gray('Generate a new route guard')}
${green('destroy component <name>')} ${gray('Delete a component and its registrations (alias: d)')}
${green('destroy page <name>')} ${gray('Delete a page (alias: d p)')}
${green('destroy bridge <name>')} ${gray('Delete a shared reactive bridge')}
${green('destroy guard <name>')} ${gray('Delete a route guard')}
${green('build (b)')} ${gray('Build for production: minified runtime, optimized output')}
${green('clean')} ${gray('Clear build output directory')}
${green('check (lint)')} ${gray('Validate templates without building')}
${green('doctor')} ${gray('Diagnose environment, config, and project health')}
${green('env')} ${gray('Print and validate active environment variables')}
${green('explain <CODE>')} ${gray('Explain a compiler/runtime error or warning code')}
${green('inspect (i)')} ${gray('Inspect project route and component hierarchy')}
${green('stats (s)')} ${gray('Display component & bundle footprint metrics')}
${green('atlas')} ${gray('Show the compiler\'s semantic map of the application')}
${green('impact <symbol>')} ${gray('What can be affected if this changes')}
${green('why <symbol>')} ${gray('Where this value comes from')}
${green('trace list (ls)')} ${gray('List recorded causal traces (default for bare "avenx trace")')}
${green('trace view (show) <id|latest>')} ${gray('Print a trace as a causal tree: event to DOM patch')}
${green('trace export <id|latest>')} ${gray('Turn a recorded trace into a regression test')}
${green('trace prune (clean)')} ${gray('Remove stored traces')}
${green('serve [port]')} ${gray('Start dev server with hot-reload (default: 3000)')}
${green('watch (w)')} ${gray('Watch for file changes and rebuild automatically')}
${green('format')} ${gray('Format project files using Prettier (--dry-run lists, --check fails if unformatted)')}
${green('help')} ${gray('Show this help message')}
${bold(cyan('Options:'))}
${green('--layout <blank|routing>')} ${gray('Specify project layout template for init (default: blank)')}
${green('--style <none|sass|...>')} ${gray('Specify CSS preprocessor for init (none, sass, less, postcss)')}
${green('--yes, -y')} ${gray('Skip the "init" wizard and take the defaults (none, blank)')}
${green('--interactive, -i')} ${gray('Run the "init" wizard even when stdin or stdout is not a TTY')}
${green('--dev')} ${gray('Build for development: readable runtime, inline CSS source maps')}
${green('--prod')} ${gray('Build for production (the default for "build")')}
${green('--csp-strict')} ${gray('Refuse any output needing \'unsafe-eval\', in development builds too')}
${green('--code-splitting, --split')} ${gray('Emit each page as its own chunk in <distDir>/pages/ ("build" only)')}
${green('--dry-run, -d')} ${gray('Preview actions without writing or deleting any files')}
${green('--force, -f')} ${gray('Force overwrite existing files during scaffold generation')}
${green('--with-test')} ${gray('Generate a colocated unit test file alongside the component')}
${green('--no-test')} ${gray('Skip generating unit test files')}
${green('--template, -t <name>')} ${gray('Use a custom scaffold template for code generation')}
${green('--json, -j')} ${gray('Machine-readable output for check, atlas, impact, why and explain (explain: --json only)')}
${green('--depth=<n>')} ${gray('How many hops "impact" and "why" follow (default: 12)')}
${green('--watch, -w')} ${gray('Watch project component files for continuous template linting')}
${green('--strict, --strict-a11y')} ${gray('Make "check" fail on accessibility warnings too')}
${green('--no-color')} ${gray('Disable colored output (the NO_COLOR variable is honored too)')}
${green('--port, -p <port>')} ${gray('Port for "serve" (else a bare port arg, then PORT, config server.port, 3000)')}
${green('--host, -h <host>')} ${gray('Host for "serve" to bind (default: localhost)')}
${green('--open, -o')} ${gray('Open a browser when "serve" starts')}
${green('--no-live-reload')} ${gray('Disable live reload while serving')}
${green('--no-error-overlay')} ${gray('Do not show build diagnostics as a browser overlay while serving')}
${green('--trace')} ${gray('Record a causal trace while serving (dev only, off by default)')}
${green('--roots=<n>')} ${gray('Show only the first n causal roots in "trace view"')}
${green('--out, -o <file>')} ${gray('Where "trace export" writes the generated regression test')}
${green('--keep=<n>, --all')} ${gray('How much "trace prune" removes')}
${green('--help')} ${gray('Show this help for any command, before it runs')}
${green('--version, -v')} ${gray('Output the current version')}
`);
} |