docs: update README with current CLI commands
- Replace myst init with myst config init - Replace myst forgejo bootstrap with myst verify - Replace myst doctor with myst verify --diagnostic - Replace myst config print with myst config view
This commit is contained in:
parent
099d521288
commit
a7f30a0d3a
2 changed files with 12 additions and 11 deletions
12
README.md
12
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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue