fix(cli): centralize command help metadata

This commit is contained in:
Brent
2026-08-01 00:29:57 +00:00
parent c8871419e2
commit dc4d15e59d
34 changed files with 224 additions and 97 deletions
+3 -2
View File
@@ -1,15 +1,16 @@
/**
* Generate and optionally push a commit with changelog updates.
*/
import { postmortem } from "@oh-my-pi/pi-utils";
import { Command, Flags } from "@oh-my-pi/pi-utils/cli";
import { commitHelp as commandHelp } from "../cli/command-help";
import { runCommitCommand } from "../commit";
import type { CommitCommandArgs } from "../commit/types";
import { initTheme } from "../modes/theme/theme";
export default class Commit extends Command {
static description = "Generate a commit message and update changelogs";
static description = commandHelp.description;
static flags = {
push: Flags.boolean({ description: "Push after committing" }),
"dry-run": Flags.boolean({ description: "Preview without committing" }),