mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-11 10:40:53 -04:00
fix: add help to the cache command
This commit is contained in:
5
.changeset/flat-peaches-lick.md
Normal file
5
.changeset/flat-peaches-lick.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/cache.commands": patch
|
||||
---
|
||||
|
||||
Add help to the cache command.
|
||||
27
cache/commands/src/cache.cmd.ts
vendored
27
cache/commands/src/cache.cmd.ts
vendored
@@ -27,8 +27,31 @@ export const commandNames = ['cache']
|
||||
|
||||
export function help (): string {
|
||||
return renderHelp({
|
||||
description: '',
|
||||
descriptionLists: [],
|
||||
description: 'Inspect and manage the metadata cache',
|
||||
descriptionLists: [
|
||||
{
|
||||
title: 'Commands',
|
||||
|
||||
list: [
|
||||
{
|
||||
description: 'Lists the available packages metadata cache. Supports filtering by glob',
|
||||
name: 'list',
|
||||
},
|
||||
{
|
||||
description: 'Lists all registries that have their metadata cache locally',
|
||||
name: 'list-registries',
|
||||
},
|
||||
{
|
||||
description: "Views information from the specified package's cache",
|
||||
name: 'view',
|
||||
},
|
||||
{
|
||||
description: 'Deletes metadata cache for the specified package(s). Supports patterns',
|
||||
name: 'delete',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
url: docsUrl('cache'),
|
||||
usages: ['pnpm cache <command>'],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user