Skip to content

Commit

Permalink
feat: add default command to CLI with placeholder console.log
Browse files Browse the repository at this point in the history
- Implemented a default command in the CLI with a placeholder console.log for now.
  • Loading branch information
RaulCatalinas committed Apr 28, 2024
1 parent 98589e8 commit 1575177
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controllers/husky-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function huskyConfigController() {
console.log("Generating Husky's configuration")
}
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// Config
import { configureCLI, program } from './config/huskybc'

// Controllers
import { huskyConfigController } from './controllers/husky-config'

configureCLI()

const thereIsFirstArgument = program.args[0] !== undefined

if (!thereIsFirstArgument) {
program.action(huskyConfigController)
}

program.parse()

0 comments on commit 1575177

Please sign in to comment.