From e28b4e87775b83e5b9aa6c8e81fe837e9e8069b2 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sun, 24 May 2020 12:42:07 +0300 Subject: [PATCH] fix: remove rarely used commands from generic help --- .changeset/eighty-maps-wait.md | 5 +++ packages/pnpm/src/cmd/help.ts | 70 ++-------------------------------- 2 files changed, 9 insertions(+), 66 deletions(-) create mode 100644 .changeset/eighty-maps-wait.md diff --git a/.changeset/eighty-maps-wait.md b/.changeset/eighty-maps-wait.md new file mode 100644 index 0000000000..081de251cf --- /dev/null +++ b/.changeset/eighty-maps-wait.md @@ -0,0 +1,5 @@ +--- +"pnpm": minor +--- + +Add descriptions to the commands in the generic help. Remove some rarely use commands from generic help. diff --git a/packages/pnpm/src/cmd/help.ts b/packages/pnpm/src/cmd/help.ts index c37a1d1914..f71beca42b 100644 --- a/packages/pnpm/src/cmd/help.ts +++ b/packages/pnpm/src/cmd/help.ts @@ -74,6 +74,10 @@ function getHelpText () { title: 'Review your dependencies', list: [ + { + description: 'Checks for known security issues with the installed packages', + name: 'audit', + }, { description: 'Print all the versions of packages that are installed, as well as their dependencies, in a tree-structure', name: 'list', @@ -126,72 +130,6 @@ function getHelpText () { { name: 'root', }, - { - description: 'Checks for known security issues with the installed packages', - name: 'audit', - }, - ], - }, - { - title: 'Manage your monorepo', - - list: [ - { - description: 'Runs a command in each package of the monorepo', - name: 'recursive exec', - }, - { - description: 'Runs installation for every package in every subfolder', - name: 'recursive install', - }, - { - name: 'recursive add', - }, - { - name: 'recursive list', - }, - { - name: 'recursive why', - }, - { - name: 'recursive outdated', - }, - { - name: 'recursive rebuild', - }, - { - name: 'recursive run', - }, - { - name: 'recursive test', - }, - { - name: 'recursive remove', - }, - { - name: 'recursive unlink', - }, - { - name: 'recursive update', - }, - ], - }, - { - title: 'Use a store server', - - list: [ - { - description: 'Starts a server that does all interactions with the store. Other commands will delegate any store-related tasks to this server', - name: 'server start', - }, - { - description: 'Stops the store server', - name: 'server status', - }, - { - description: 'Prints information about the running server', - name: 'server stop', - }, ], }, {