Skip to content

Commit

Permalink
Merge pull request #34 from ebenjs/feature-interactive-mode
Browse files Browse the repository at this point in the history
Feature interactive mode
  • Loading branch information
ebenjs authored Dec 20, 2023
2 parents 0cff970 + 8d6c7ab commit c1f155a
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 349 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ yargs(hideBin(process.argv))
.option("interactive", {
alias: "i",
type: "boolean",
default: false,
default: true,
describe: "Interactive mode",
});
},
(argv) => {
ask(argv.prompt);
ask(argv.prompt, argv.interactive);
},
)
.command(
Expand Down
340 changes: 4 additions & 336 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/consts/app-global-consts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import chalk from "chalk";

export const appGlobalConsts = {
userPromptPrefix: "[gp-shell-promt]",
systemResponsePrefix: "[gp-shell-response]",
systemErrorPrefix: "[error]",
colorizedUserPromptPrefix: chalk.blueBright("[gp-shell-promt]"),
colorizedSystemResponsePrefix: chalk.magenta("[gp-shell-response]"),
colorizedSystemErrorPrefix: chalk.redBright("[error]"),
};
Loading

0 comments on commit c1f155a

Please sign in to comment.