zhangyuhan 3 жил өмнө
parent
commit
e5fe6c15cd
2 өөрчлөгдсөн 8 нэмэгдсэн , 269 устгасан
  1. 7 268
      README.md
  2. 1 1
      package.json

+ 7 - 268
README.md

@@ -16,7 +16,7 @@ $ npm install -g @jianyu/cli
 $ jianyu COMMAND
 running command...
 $ jianyu (--version)
-@jianyu/cli/0.1.3 darwin-x64 node-v16.14.2
+@jianyu/cli/0.1.8 darwin-x64 node-v16.14.2
 $ jianyu --help [COMMAND]
 USAGE
   $ jianyu COMMAND
@@ -28,17 +28,8 @@ USAGE
 * [`jianyu create`](#jianyu-create)
 * [`jianyu help [COMMAND]`](#jianyu-help-command)
 * [`jianyu init DIR`](#jianyu-init-dir)
-* [`jianyu plugins`](#jianyu-plugins)
-* [`jianyu plugins:install PLUGIN...`](#jianyu-pluginsinstall-plugin)
-* [`jianyu plugins:inspect PLUGIN...`](#jianyu-pluginsinspect-plugin)
-* [`jianyu plugins:install PLUGIN...`](#jianyu-pluginsinstall-plugin-1)
-* [`jianyu plugins:link PLUGIN`](#jianyu-pluginslink-plugin)
-* [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin)
-* [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin-1)
-* [`jianyu plugins:uninstall PLUGIN...`](#jianyu-pluginsuninstall-plugin-2)
-* [`jianyu plugins update`](#jianyu-plugins-update)
 * [`jianyu sync`](#jianyu-sync)
-* [`jianyu update [CHANNEL]`](#jianyu-update-channel)
+* [`jianyu update`](#jianyu-update)
 
 ## `jianyu create`
 
@@ -97,236 +88,6 @@ EXAMPLES
   创建目录并拉取指定模版初始化项目
 ```
 
-## `jianyu plugins`
-
-List installed plugins.
-
-```
-USAGE
-  $ jianyu plugins [--core]
-
-FLAGS
-  --core  Show core plugins.
-
-DESCRIPTION
-  List installed plugins.
-
-EXAMPLES
-  $ jianyu plugins
-```
-
-_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.0.11/src/commands/plugins/index.ts)_
-
-## `jianyu plugins:install PLUGIN...`
-
-Installs a plugin into the CLI.
-
-```
-USAGE
-  $ jianyu plugins:install PLUGIN...
-
-ARGUMENTS
-  PLUGIN  Plugin to install.
-
-FLAGS
-  -f, --force    Run yarn install with force flag.
-  -h, --help     Show CLI help.
-  -v, --verbose
-
-DESCRIPTION
-  Installs a plugin into the CLI.
-
-  Can be installed from npm or a git url.
-
-  Installation of a user-installed plugin will override a core plugin.
-
-  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
-  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
-  the CLI without the need to patch and update the whole CLI.
-
-ALIASES
-  $ jianyu plugins add
-
-EXAMPLES
-  $ jianyu plugins:install myplugin 
-
-  $ jianyu plugins:install https://github.com/someuser/someplugin
-
-  $ jianyu plugins:install someuser/someplugin
-```
-
-## `jianyu plugins:inspect PLUGIN...`
-
-Displays installation properties of a plugin.
-
-```
-USAGE
-  $ jianyu plugins:inspect PLUGIN...
-
-ARGUMENTS
-  PLUGIN  [default: .] Plugin to inspect.
-
-FLAGS
-  -h, --help     Show CLI help.
-  -v, --verbose
-
-DESCRIPTION
-  Displays installation properties of a plugin.
-
-EXAMPLES
-  $ jianyu plugins:inspect myplugin
-```
-
-## `jianyu plugins:install PLUGIN...`
-
-Installs a plugin into the CLI.
-
-```
-USAGE
-  $ jianyu plugins:install PLUGIN...
-
-ARGUMENTS
-  PLUGIN  Plugin to install.
-
-FLAGS
-  -f, --force    Run yarn install with force flag.
-  -h, --help     Show CLI help.
-  -v, --verbose
-
-DESCRIPTION
-  Installs a plugin into the CLI.
-
-  Can be installed from npm or a git url.
-
-  Installation of a user-installed plugin will override a core plugin.
-
-  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
-  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
-  the CLI without the need to patch and update the whole CLI.
-
-ALIASES
-  $ jianyu plugins add
-
-EXAMPLES
-  $ jianyu plugins:install myplugin 
-
-  $ jianyu plugins:install https://github.com/someuser/someplugin
-
-  $ jianyu plugins:install someuser/someplugin
-```
-
-## `jianyu plugins:link PLUGIN`
-
-Links a plugin into the CLI for development.
-
-```
-USAGE
-  $ jianyu plugins:link PLUGIN
-
-ARGUMENTS
-  PATH  [default: .] path to plugin
-
-FLAGS
-  -h, --help     Show CLI help.
-  -v, --verbose
-
-DESCRIPTION
-  Links a plugin into the CLI for development.
-
-  Installation of a linked plugin will override a user-installed or core plugin.
-
-  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
-  command will override the user-installed or core plugin implementation. This is useful for development work.
-
-EXAMPLES
-  $ jianyu plugins:link myplugin
-```
-
-## `jianyu plugins:uninstall PLUGIN...`
-
-Removes a plugin from the CLI.
-
-```
-USAGE
-  $ jianyu plugins:uninstall PLUGIN...
-
-ARGUMENTS
-  PLUGIN  plugin to uninstall
-
-FLAGS
-  -h, --help     Show CLI help.
-  -v, --verbose
-
-DESCRIPTION
-  Removes a plugin from the CLI.
-
-ALIASES
-  $ jianyu plugins unlink
-  $ jianyu plugins remove
-```
-
-## `jianyu plugins:uninstall PLUGIN...`
-
-Removes a plugin from the CLI.
-
-```
-USAGE
-  $ jianyu plugins:uninstall PLUGIN...
-
-ARGUMENTS
-  PLUGIN  plugin to uninstall
-
-FLAGS
-  -h, --help     Show CLI help.
-  -v, --verbose
-
-DESCRIPTION
-  Removes a plugin from the CLI.
-
-ALIASES
-  $ jianyu plugins unlink
-  $ jianyu plugins remove
-```
-
-## `jianyu plugins:uninstall PLUGIN...`
-
-Removes a plugin from the CLI.
-
-```
-USAGE
-  $ jianyu plugins:uninstall PLUGIN...
-
-ARGUMENTS
-  PLUGIN  plugin to uninstall
-
-FLAGS
-  -h, --help     Show CLI help.
-  -v, --verbose
-
-DESCRIPTION
-  Removes a plugin from the CLI.
-
-ALIASES
-  $ jianyu plugins unlink
-  $ jianyu plugins remove
-```
-
-## `jianyu plugins update`
-
-Update installed plugins.
-
-```
-USAGE
-  $ jianyu plugins update [-h] [-v]
-
-FLAGS
-  -h, --help     Show CLI help.
-  -v, --verbose
-
-DESCRIPTION
-  Update installed plugins.
-```
-
 ## `jianyu sync`
 
 同步到物料平台(内网注册表)
@@ -342,40 +103,18 @@ EXAMPLES
   $ jianyu sync
 ```
 
-## `jianyu update [CHANNEL]`
+## `jianyu update`
 
-update the jianyu CLI
+检测 CLI 版本更新
 
 ```
 USAGE
-  $ jianyu update [CHANNEL] [-a] [-v <value> | -i] [--force]
-
-FLAGS
-  -a, --available        Install a specific version.
-  -i, --interactive      Interactively select version to install. This is ignored if a channel is provided.
-  -v, --version=<value>  Install a specific version.
-  --force                Force a re-download of the requested version.
+  $ jianyu update
 
 DESCRIPTION
-  update the jianyu CLI
+  检测 CLI 版本更新
 
 EXAMPLES
-  Update to the stable channel:
-
-    $ jianyu update stable
-
-  Update to a specific version:
-
-    $ jianyu update --version 1.0.0
-
-  Interactively select version:
-
-    $ jianyu update --interactive
-
-  See available versions:
-
-    $ jianyu update --available
+  $ jianyu update
 ```
-
-_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v3.0.0/src/commands/update.ts)_
 <!-- commandsstop -->

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@jianyu/cli",
-  "version": "0.1.3",
+  "version": "0.1.8",
   "description": "剑鱼前端脚手架,提供项目初始化、包更新等基础能力",
   "author": "zhangyuhan",
   "keywords": [