berget 2.2.0 → 2.2.2

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.
package/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { program } from 'commander'
3
+ import { program, Option } from 'commander'
4
4
  import { registerCommands } from './src/commands'
5
5
  import { checkBergetConfig } from './src/utils/config-checker'
6
6
  import chalk from 'chalk'
@@ -23,8 +23,8 @@ program
23
23
  Version: ${version}`
24
24
  )
25
25
  .version(version, '-v, --version')
26
- .option('--local', 'Use local API endpoint (hidden)', false)
27
- .option('--stage', 'Use stage API endpoint', false)
26
+ .addOption(new Option('--local').default(false).hideHelp())
27
+ .addOption(new Option('--stage').default(false).hideHelp())
28
28
  .option('--debug', 'Enable debug output', false)
29
29
 
30
30
  // Register all commands
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "berget",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "berget": "dist/index.js"