@stricli/auto-complete
Advanced tools
+1
-1
@@ -6,2 +6,2 @@ #!/usr/bin/env node | ||
| `)),t.process.stdout.write("Restart bash shell or run `source ~/.bashrc` to load changes.\n")},uninstall:async s=>{let m=w(s),r=n.indexOf(m);if(r>=0){let l=n.indexOf(h,r);n.splice(r,l-r+1)}await o.promises.writeFile(p,n.join(` | ||
| `)),t.process.stdout.write("Restart bash shell or run `source ~/.bashrc` to load changes.\n")}}}var v,A,P,h,O=j(()=>{"use strict";v=d(require("os"),1),A=d(require("fs"),1),P=d(require("path"),1);h="# @stricli/auto-complete END"});var b={};B(b,{install:()=>J,uninstall:()=>U});async function J(t,e){t.bash&&await(await f(this))?.install(e,t.bash)}async function U(t,e){t.bash&&await(await f(this))?.uninstall(e)}var g=j(()=>{"use strict";O()});var L=require("@stricli/core");var c=require("@stricli/core");var C=require("@stricli/core");var T={parse:String,brief:"Target command run by user",placeholder:"targetCommand"},E=(0,C.buildCommand)({loader:async()=>{let{install:t}=await Promise.resolve().then(()=>(g(),b));return t},parameters:{flags:{bash:{kind:"parsed",brief:"Command executed by bash to generate completion proposals",parse:String,optional:!0,placeholder:"command"}},positional:{kind:"tuple",parameters:[T]}},docs:{brief:"Installs autocomplete support for target command on all provided shell types"}});var $=(0,C.buildCommand)({loader:async()=>{let{uninstall:t}=await Promise.resolve().then(()=>(g(),b));return t},parameters:{flags:{bash:{kind:"boolean",brief:"Uninstall autocompletion for bash",optional:!0}},positional:{kind:"tuple",parameters:[T]}},docs:{brief:"Uninstalls autocomplete support for target command on all selected shell types"}});var y={name:"@stricli/auto-complete",version:"1.2.0",description:"Common utilities for enhancing Stricli applications with autocomplete",license:"Apache-2.0",repository:{type:"git",url:"https://github.com/bloomberg/stricli/tree/main/packages/auto-complete"},author:"Michael Molisani <mmolisani@bloomberg.net>",files:["dist"],type:"module",exports:{import:"./dist/index.js",require:"./dist/index.cjs"},types:"dist/index.d.ts",bin:"dist/bin/cli.js",scripts:{format:"prettier --config ../../.prettierrc -w .","format:check":"prettier --config ../../.prettierrc -c .",lint:"eslint src","lint:fix":"eslint src --fix",typecheck:"tsc -p tsconfig.json --noEmit",build:"tsup",prepublishOnly:"npm run build"},tsup:{entry:["src/index.ts","src/bin/cli.ts"],format:["esm","cjs"],tsconfig:"src/tsconfig.json",dts:!0,minify:!0,clean:!0},devDependencies:{"@typescript-eslint/eslint-plugin":"^8.2.0","@typescript-eslint/parser":"^8.2.0",eslint:"^8.57.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^5.0.0",prettier:"^3.0.0",tsup:"^6.7.0",typescript:"5.6.x"},dependencies:{"@stricli/core":"^1.2.0"}};var D=(0,c.buildRouteMap)({routes:{install:E,uninstall:$},aliases:{i:"install"},docs:{brief:"Manage auto-complete command installations for shells"}}),k=(0,c.buildApplication)(D,{name:y.name,versionInfo:{getCurrentVersion:async()=>y.version}});(0,L.run)(k,process.argv.slice(2),globalThis); | ||
| `)),t.process.stdout.write("Restart bash shell or run `source ~/.bashrc` to load changes.\n")}}}var v,A,P,h,O=j(()=>{"use strict";v=d(require("os"),1),A=d(require("fs"),1),P=d(require("path"),1);h="# @stricli/auto-complete END"});var b={};B(b,{install:()=>J,uninstall:()=>U});async function J(t,e){t.bash&&await(await f(this))?.install(e,t.bash)}async function U(t,e){t.bash&&await(await f(this))?.uninstall(e)}var g=j(()=>{"use strict";O()});var L=require("@stricli/core");var c=require("@stricli/core");var C=require("@stricli/core");var T={parse:String,brief:"Target command run by user",placeholder:"targetCommand"},E=(0,C.buildCommand)({loader:async()=>{let{install:t}=await Promise.resolve().then(()=>(g(),b));return t},parameters:{flags:{bash:{kind:"parsed",brief:"Command executed by bash to generate completion proposals",parse:String,optional:!0,placeholder:"command"}},positional:{kind:"tuple",parameters:[T]}},docs:{brief:"Installs autocomplete support for target command on all provided shell types"}});var $=(0,C.buildCommand)({loader:async()=>{let{uninstall:t}=await Promise.resolve().then(()=>(g(),b));return t},parameters:{flags:{bash:{kind:"boolean",brief:"Uninstall autocompletion for bash",optional:!0}},positional:{kind:"tuple",parameters:[T]}},docs:{brief:"Uninstalls autocomplete support for target command on all selected shell types"}});var y={name:"@stricli/auto-complete",version:"1.2.1",description:"Common utilities for enhancing Stricli applications with autocomplete",license:"Apache-2.0",repository:{type:"git",url:"https://github.com/bloomberg/stricli/tree/main/packages/auto-complete"},author:"Michael Molisani <mmolisani@bloomberg.net>",files:["dist"],type:"module",exports:{import:"./dist/index.js",require:"./dist/index.cjs"},types:"dist/index.d.ts",bin:"dist/bin/cli.js",scripts:{format:"prettier --config ../../.prettierrc -w .","format:check":"prettier --config ../../.prettierrc -c .",lint:"eslint src","lint:fix":"eslint src --fix",typecheck:"tsc -p tsconfig.json --noEmit",build:"tsup",prepublishOnly:"npm run build"},tsup:{entry:["src/index.ts","src/bin/cli.ts"],format:["esm","cjs"],tsconfig:"src/tsconfig.json",dts:!0,minify:!0,clean:!0},devDependencies:{"@typescript-eslint/eslint-plugin":"^8.2.0","@typescript-eslint/parser":"^8.2.0",eslint:"^8.57.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^5.0.0",prettier:"^3.0.0",tsup:"^6.7.0",typescript:"5.6.x"},dependencies:{"@stricli/core":"^1.2.1"}};var D=(0,c.buildRouteMap)({routes:{install:E,uninstall:$},aliases:{i:"install"},docs:{brief:"Manage auto-complete command installations for shells"}}),k=(0,c.buildApplication)(D,{name:y.name,versionInfo:{getCurrentVersion:async()=>y.version}});(0,L.run)(k,process.argv.slice(2),globalThis); |
+1
-1
| #!/usr/bin/env node | ||
| import{a as t,c as e}from"../chunk-ADA5XTIG.js";import{run as p}from"@stricli/core";import{buildApplication as r,buildRouteMap as o}from"@stricli/core";var i={name:"@stricli/auto-complete",version:"1.2.0",description:"Common utilities for enhancing Stricli applications with autocomplete",license:"Apache-2.0",repository:{type:"git",url:"https://github.com/bloomberg/stricli/tree/main/packages/auto-complete"},author:"Michael Molisani <mmolisani@bloomberg.net>",files:["dist"],type:"module",exports:{import:"./dist/index.js",require:"./dist/index.cjs"},types:"dist/index.d.ts",bin:"dist/bin/cli.js",scripts:{format:"prettier --config ../../.prettierrc -w .","format:check":"prettier --config ../../.prettierrc -c .",lint:"eslint src","lint:fix":"eslint src --fix",typecheck:"tsc -p tsconfig.json --noEmit",build:"tsup",prepublishOnly:"npm run build"},tsup:{entry:["src/index.ts","src/bin/cli.ts"],format:["esm","cjs"],tsconfig:"src/tsconfig.json",dts:!0,minify:!0,clean:!0},devDependencies:{"@typescript-eslint/eslint-plugin":"^8.2.0","@typescript-eslint/parser":"^8.2.0",eslint:"^8.57.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^5.0.0",prettier:"^3.0.0",tsup:"^6.7.0",typescript:"5.6.x"},dependencies:{"@stricli/core":"^1.2.0"}};var l=o({routes:{install:t,uninstall:e},aliases:{i:"install"},docs:{brief:"Manage auto-complete command installations for shells"}}),s=r(l,{name:i.name,versionInfo:{getCurrentVersion:async()=>i.version}});p(s,process.argv.slice(2),globalThis); | ||
| import{a as t,c as e}from"../chunk-ADA5XTIG.js";import{run as p}from"@stricli/core";import{buildApplication as r,buildRouteMap as o}from"@stricli/core";var i={name:"@stricli/auto-complete",version:"1.2.1",description:"Common utilities for enhancing Stricli applications with autocomplete",license:"Apache-2.0",repository:{type:"git",url:"https://github.com/bloomberg/stricli/tree/main/packages/auto-complete"},author:"Michael Molisani <mmolisani@bloomberg.net>",files:["dist"],type:"module",exports:{import:"./dist/index.js",require:"./dist/index.cjs"},types:"dist/index.d.ts",bin:"dist/bin/cli.js",scripts:{format:"prettier --config ../../.prettierrc -w .","format:check":"prettier --config ../../.prettierrc -c .",lint:"eslint src","lint:fix":"eslint src --fix",typecheck:"tsc -p tsconfig.json --noEmit",build:"tsup",prepublishOnly:"npm run build"},tsup:{entry:["src/index.ts","src/bin/cli.ts"],format:["esm","cjs"],tsconfig:"src/tsconfig.json",dts:!0,minify:!0,clean:!0},devDependencies:{"@typescript-eslint/eslint-plugin":"^8.2.0","@typescript-eslint/parser":"^8.2.0",eslint:"^8.57.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^5.0.0",prettier:"^3.0.0",tsup:"^6.7.0",typescript:"5.6.x"},dependencies:{"@stricli/core":"^1.2.1"}};var l=o({routes:{install:t,uninstall:e},aliases:{i:"install"},docs:{brief:"Manage auto-complete command installations for shells"}}),s=r(l,{name:i.name,versionInfo:{getCurrentVersion:async()=>i.version}});p(s,process.argv.slice(2),globalThis); |
+2
-2
| { | ||
| "name": "@stricli/auto-complete", | ||
| "version": "1.2.0", | ||
| "version": "1.2.1", | ||
| "description": "Common utilities for enhancing Stricli applications with autocomplete", | ||
@@ -55,4 +55,4 @@ "license": "Apache-2.0", | ||
| "dependencies": { | ||
| "@stricli/core": "^1.2.0" | ||
| "@stricli/core": "^1.2.1" | ||
| } | ||
| } |
Updated