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/.github/workflows/publish.yml +20 -6
- package/dist/index.js +2 -2
- package/dist/package.json +1 -1
- package/dist/src/commands/code.js +33 -455
- package/index.ts +3 -3
- package/package.json +1 -1
- package/src/commands/code.ts +34 -546
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
|
-
.
|
|
27
|
-
.
|
|
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
|