diff --git a/README.md b/README.md index 6490f76..7f82116 100644 --- a/README.md +++ b/README.md @@ -46,10 +46,10 @@ HTMX provides interactivity (filtering, form submissions) with minimal JavaScrip ## Quick Start -### 1. Run `myst init` +### 1. Run `myst config init` ```bash -myst init +myst config init ``` Prompts for: @@ -92,12 +92,12 @@ GRANT_TOKEN_SECRET="your-secret-here" ## Phase 1 Progress - [x] Project renamed from Embargo to Myst -- [x] CLI scaffold (`myst init`) +- [x] CLI scaffold (`myst config init`) - [x] Config generation (`.env`) - [ ] Service foundation (FastAPI + PostgreSQL) -- [ ] `myst forgejo bootstrap` — verify Forgejo connectivity -- [ ] `myst doctor` — validate configuration -- [ ] `myst config print` — show current config +- [ ] `myst verify` — verify Forgejo connectivity +- [ ] `myst verify --diagnostic` — validate configuration +- [ ] `myst config view` — show current config - [ ] Forgejo session authentication - [ ] Repo ownership verification - [ ] Private link creation (email-verified) diff --git a/packages/cli/src/cli-router.ts b/packages/cli/src/cli-router.ts index 538406a..7cdb03b 100644 --- a/packages/cli/src/cli-router.ts +++ b/packages/cli/src/cli-router.ts @@ -123,7 +123,8 @@ function showCommandHelp( }); } - const colWidth = Math.max(...optionRows.map((r) => r.name.length)) + PADDING; + const colWidth = + Math.max(...optionRows.map((r) => r.name.length)) + PADDING; lines.push(c.bold("Options:")); for (const row of optionRows) { @@ -154,7 +155,7 @@ export async function runCli( // Check for version flag (early exit) if (argv.length > 0 && argv.every(isVersionFlag)) { - process.stdout.write(version); + process.stdout.write(version + "\n"); return; } @@ -193,7 +194,7 @@ export async function runCli( // Check if subcommand was passed and if it's a valid subcommand (not an option flag) const subcommands = cmdConf.subcommands; const isSubcommandAnOption = subcommand && subcommand.startsWith("-"); - + if (isSubcommandAnOption) { // Subcommand looks like an option (e.g., --diagnostic), treat as option for parent targetCmdConf = cmdConf.handler ? cmdConf : undefined; @@ -221,8 +222,8 @@ export async function runCli( } // Build args for parseArgs - if subcommand is an option, include it - const argsForOptions = isSubcommandAnOption - ? [subcommand, ...remainingArgs] + const argsForOptions = isSubcommandAnOption + ? [subcommand, ...remainingArgs] : remainingArgs; // Parse target command options