@gutenye/script.js 2.5.0 → 2.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gutenye/script.js",
3
- "version": "2.5.0",
3
+ "version": "2.6.1",
4
4
  "description": "Write shell scripts in JavaScript",
5
5
  "keywords": [
6
6
  "shell",
@@ -15,3 +15,6 @@ end
15
15
  _setup_ake_complete ake
16
16
  # _setup_ake_complete ake <suffix>
17
17
 
18
+ # for c in (string split '' abcdefghijklmnopqrstuvwxyz)
19
+ # _setup_ake_complete ake $c
20
+ # end
package/src/completion.ts CHANGED
@@ -146,6 +146,7 @@ export async function installCompletion(
146
146
 
147
147
  fsSync.mkdirSync(specsDir, { recursive: true })
148
148
  fsSync.writeFileSync(filePath, result.text)
149
+ console.log(`Updated completion spec: ${filePath}`)
149
150
  } catch {
150
151
  // completion is supplementary — silently ignore errors
151
152
  }
File without changes
package/src/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { app, Command } from './Command'
2
+ export * from './frequent-used-helpers'
2
3
  export { $ } from './spawn'
package/src/parseArgv.ts CHANGED
@@ -54,7 +54,7 @@ export function parseArgv(
54
54
  options[opt.attributeName] = next
55
55
  i++
56
56
  } else {
57
- options[opt.attributeName] = true
57
+ options[opt.attributeName] = opt.defaultValue ?? true
58
58
  }
59
59
  }
60
60
  } else {