feat(commands): add aliases to main commands

This commit is contained in:
2023-12-17 16:23:25 +02:00
parent 28e1caf281
commit f371102a8a
3 changed files with 35 additions and 26 deletions

View File

@@ -10,7 +10,7 @@ import {
select,
text,
} from "@clack/prompts";
import fs from "fs";
import fs, { fdatasync } from "fs";
import path from "path";
import { CommitStack, Config } from "./types";
import simpleGit from "simple-git";
@@ -49,6 +49,7 @@ program
program
.command("commit")
.alias("c")
.description("Create a conventional commit")
.option("-S, --sign", "sign the commit")
.option("--amend", "amend commit message to the last commit")
@@ -237,6 +238,7 @@ program
program
.command("changelog")
.alias("ch")
.description("Outputs a markdown formatted changelog")
.option("--show-hashes", "show first 9 characters of commit hashes")
.option("--last-only", "display only latest release changes")
@@ -422,6 +424,7 @@ program
program
.command("release")
.alias("rel")
.description(
"Changes package.json version and creates a new commit with a tag"
)