⚙️ Update script metadata and add command aliases in commit.ts
This commit is contained in:
@@ -22,6 +22,11 @@ async function checkRev(): Promise<boolean> {
|
||||
async function main() {
|
||||
const flags = parseArgs(Deno.args, {
|
||||
boolean: ["help", "check-only", "auto-commit"],
|
||||
alias: {
|
||||
H: "help",
|
||||
C: "check-only",
|
||||
A: "auto-commit",
|
||||
},
|
||||
});
|
||||
const checkOnly = flags["check-only"];
|
||||
const autoCommit = flags["auto-commit"];
|
||||
@@ -29,9 +34,9 @@ async function main() {
|
||||
if (flags.help) {
|
||||
console.log(`commit.ts
|
||||
|
||||
commit.ts [--help] - show help message
|
||||
commit.ts [--check-only] - check rev and status only
|
||||
commit.ts [--auto-commit] - auto commit with AI summarize
|
||||
commit.ts [-H|--help] - show help message
|
||||
commit.ts [-C|--check-only] - check rev and status only
|
||||
commit.ts [-A|--auto-commit] - auto commit with AI summarize
|
||||
`);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user