feat(commands): add aliases to main commands
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user