@bablr/cli 0.1.10 → 0.1.11

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/bin/index.js +2 -6
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -37,7 +37,7 @@ if (programOpts.color && !['auto', 'always', 'never'].includes(programOpts.color
37
37
  const options = {
38
38
  ...programOpts,
39
39
  color:
40
- (programOpts.color.toLowerCase() === 'auto' && colorSupport.hasBasic) ||
40
+ (programOpts.color.toLowerCase() === 'auto' && colorSupport.hasBasic && !programOpts.verbose) ||
41
41
  programOpts.color.toLowerCase() === 'always',
42
42
  };
43
43
 
@@ -48,11 +48,7 @@ const logStderr = (...args) => {
48
48
  };
49
49
 
50
50
  if (options.verbose && options.color) {
51
- // ANSI formatting escapes don't keep separate spanning stacks for stdin and sterr
52
- // this means you NEED a parser that ingests a combination of log and output if you
53
- // want to be able to highlight the complete output without breakage
54
- // It can be built, but I haven't yet
55
- throw new Error('Unsupported combination of options: verbose and color');
51
+ throw new Error('TODO support this in a better way than turning off color');
56
52
  }
57
53
 
58
54
  const enhancers = options.verbose ? { ...buildDebugEnhancers(logStderr), agastStrategy: null } : {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bablr/cli",
3
3
  "description": "CLI for running BABLR parsers",
4
- "version": "0.1.10",
4
+ "version": "0.1.11",
5
5
  "author": "Conrad Buck<conartist6@gmail.com>",
6
6
  "type": "module",
7
7
  "files": [