Skip to content

Commit 9aa9c70

Browse files
committed
🔨 Refactor: use new promtConfig file
1 parent 551da9b commit 9aa9c70

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/cli.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env node
2-
// import { argv } from 'yargs';
3-
import sgcPrompt from './sgcPrompt';
2+
import promptConfig from './promptConfig';
43

5-
sgcPrompt();
4+
const cli = promptConfig;
5+
const config = cli.config();
6+
const choices = cli.choices(config);
7+
const questions = cli.questions(choices);
8+
9+
cli.prompt(questions);

0 commit comments

Comments
 (0)