regit-cli
Version:
git helper cli
17 lines (14 loc) • 409 B
text/typescript
import { Command } from 'commander'
import {
assertCurrentBranchIsClean,
warmupGitRepo,
} from '../../services/gitHelpers.js'
import { removeRelease } from '../../services/releaseHelpers.js'
const action = async () => {
await warmupGitRepo()
await assertCurrentBranchIsClean()
await removeRelease()
}
export default (program: Command) => {
program.command('remove').action(action)
}