@evanpurkhiser/tooling-personal 1.15.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +10 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,10 +4,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  return (mod && mod.__esModule) ? mod : { "default": mod };
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ const chalk_1 = __importDefault(require("chalk"));
7
8
  const yargs_1 = __importDefault(require("yargs"));
8
9
  const pr_1 = __importDefault(require("./cmd/pr"));
9
10
  const select_commit_1 = __importDefault(require("./cmd/select-commit"));
10
11
  yargs_1.default(process.argv.slice(2))
12
+ .option('color', {
13
+ boolean: true,
14
+ desc: 'Use colored output (default: auto-detect)',
15
+ })
16
+ .middleware(args => {
17
+ if (args.color !== undefined) {
18
+ chalk_1.default.level = args.color ? 3 : 0;
19
+ }
20
+ }, true)
11
21
  .command('pr', 'Create and update PRs', pr_1.default)
12
22
  .command('select-commit', 'Select a commit hash', select_commit_1.default)
13
23
  .demandCommand(1, '')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evanpurkhiser/tooling-personal",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "Evan Purkhiser's personal tooling",
5
5
  "repository": "https://github.com/EvanPurkhiser/tooling-personal",
6
6
  "author": "Evan Purkhiser",