diff --git a/README.md b/README.md index 58377b9..6a4ae9c 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ $ npm install -g jj-command-line $ jj COMMAND running command... $ jj (--version) -jj-command-line/0.0.1 darwin-arm64 node-v20.16.0 +jj-command-line/0.0.2 darwin-arm64 node-v20.16.0 $ jj --help [COMMAND] USAGE $ jj COMMAND @@ -29,6 +29,7 @@ USAGE # Commands +* [`jj autocomplete [SHELL]`](#jj-autocomplete-shell) * [`jj help [COMMAND]`](#jj-help-command) * [`jj plugins`](#jj-plugins) * [`jj plugins add PLUGIN`](#jj-plugins-add-plugin) @@ -41,6 +42,37 @@ USAGE * [`jj plugins unlink [PLUGIN]`](#jj-plugins-unlink-plugin) * [`jj plugins update`](#jj-plugins-update) +## `jj autocomplete [SHELL]` + +Display autocomplete installation instructions. + +``` +USAGE + $ jj autocomplete [SHELL] [-r] + +ARGUMENTS + SHELL (zsh|bash|powershell) Shell type + +FLAGS + -r, --refresh-cache Refresh cache (ignores displaying instructions) + +DESCRIPTION + Display autocomplete installation instructions. + +EXAMPLES + $ jj autocomplete + + $ jj autocomplete bash + + $ jj autocomplete zsh + + $ jj autocomplete powershell + + $ jj autocomplete --refresh-cache +``` + +_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.8/src/commands/autocomplete/index.ts)_ + ## `jj help [COMMAND]` Display help for jj. diff --git a/bun.lockb b/bun.lockb index b7765ba..dc977b9 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 072db9b..25194a7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jj-command-line", "description": "jj cli", - "version": "0.0.1", + "version": "0.0.2", "author": "Jason Jafari", "bin": { "jj": "./bin/run.js" @@ -9,7 +9,9 @@ "bugs": "https://github.com/https://github.com/jafarijason/jj/jj/issues", "dependencies": { "@oclif/core": "^4", + "@oclif/plugin-autocomplete": "^3.2.8", "@oclif/plugin-help": "^6", + "@oclif/plugin-not-found": "^3.2.25", "@oclif/plugin-plugins": "^5" }, "devDependencies": { @@ -49,15 +51,12 @@ "dirname": "jj", "commands": "./dist/commands", "plugins": [ + "@oclif/plugin-*", "@oclif/plugin-help", "@oclif/plugin-plugins" ], "topicSeparator": " ", - "topics": { - "hello": { - "description": "Say hello to the world and others" - } - } + "topics": {} }, "repository": "https://github.com/jafarijason/jj/jj", "scripts": { @@ -67,7 +66,8 @@ "posttest": "yarn lint", "prepack": "oclif manifest && oclif readme", "test": "mocha --forbid-only \"test/**/*.test.ts\"", - "version": "oclif readme && git add README.md" + "version": "oclif readme && git add README.md", + "pre-publish": "yarn build && yarn prepack && yarn prepack && git add . && yarn version && git push --follow-tags" }, "types": "dist/index.d.ts" -} +} \ No newline at end of file