@voxgig/sdkgen 0.38.1 → 0.39.1

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/voxgig-sdkgen +13 -7
  2. package/package.json +1 -1
package/bin/voxgig-sdkgen CHANGED
@@ -4,11 +4,11 @@ const Path = require('node:path')
4
4
  const { statSync } = require('node:fs')
5
5
  const { parseArgs } = require('node:util')
6
6
 
7
- const { Gubu, Fault, One } = require('gubu')
7
+ const { Shape, One } = require('shape')
8
8
 
9
9
  const { SdkGen } = require('../dist/sdkgen.js')
10
10
 
11
- const VERSION = '0.38.1'
11
+ const VERSION = '0.39.1'
12
12
  const KONSOLE = console
13
13
 
14
14
 
@@ -23,11 +23,11 @@ async function run() {
23
23
  let options = resolveOptions()
24
24
 
25
25
  if (options.version) {
26
- version()
26
+ KONSOLE.log(version())
27
27
  }
28
28
 
29
29
  if (options.help) {
30
- help()
30
+ KONSOLE.log(help())
31
31
  }
32
32
 
33
33
  if (options.version || options.help) {
@@ -106,7 +106,7 @@ function resolveOptions() {
106
106
 
107
107
 
108
108
  function validateOptions(rawOptions) {
109
- const optShape = Gubu({
109
+ const optShape = Shape({
110
110
  debug: One(String, Boolean),
111
111
  help: Boolean,
112
112
  version: Boolean,
@@ -136,8 +136,14 @@ function version() { return VERSION }
136
136
 
137
137
 
138
138
  function help() {
139
- const s = 'TODO'
140
- KONSOLE.log(s)
139
+ return `Usage: voxgig-sdkgen [options] <action> [args...]
140
+
141
+ Options:
142
+ -h, --help Show this help message
143
+ -v, --version Show version
144
+ -g, --debug <level> Debug level (default: info)
145
+ -y, --dryrun Dry run (no changes written)
146
+ `
141
147
  }
142
148
 
143
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxgig/sdkgen",
3
- "version": "0.38.1",
3
+ "version": "0.39.1",
4
4
  "main": "dist/sdkgen.js",
5
5
  "type": "commonjs",
6
6
  "types": "dist/sdkgen.d.ts",