Commit graph

4 commits

Author SHA1 Message Date
ZTatman
9647f27db4 fix(cli): simplify path derivation for --output flag
- Remove unused outDir variable
- Directly use opts.output or default to cwd/.env
2026-04-12 18:29:51 -04:00
ZTatman
55d45adec8 fix(cli): replace process.exit(0) with proper exit handling
- Use process.exitCode + return in select cancel path
- Use process.exitCode + throw in group onCancel handler
- Allows finally blocks to run for cleanup
2026-04-12 18:22:06 -04:00
ZTatman
099d521288 refactor: simplify .env generation and remove unnecessary escaping
- Remove escapeEnvValue function (no longer needed)
- Simplify generateEnvFile to write plain KEY=value format
- Remove quote-stripping from parseEnvFile
- Move helper functions back to module level for cleaner code
- Use DATABASE_PROTOCOLS in validateDatabaseUrl
2026-04-12 18:13:16 -04:00
ZTatman
d6b9677ca5 refactor(cli): restructure CLI with new command router and merge verify/doctor
- Replace custom argument parsing with generic cli-router
- Add subcommand support (myst config init, myst config view)
- Merge verify and doctor into single command with --diagnostic flag
- Extract shared forgejo-checks to utils
- Remove unused code (generatePassword, EnvKey/ConfigKey types)
- Add dynamic package.json for help/version display
2026-04-11 22:16:22 -04:00
Renamed from packages/cli/src/commands/init.ts (Browse further)