fix: add help to the cache command

This commit is contained in:
Zoltan Kochan
2024-09-25 11:56:28 +02:00
parent 87a98af40e
commit a5af433782
2 changed files with 30 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/cache.commands": patch
---
Add help to the cache command.

View File

@@ -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>'],
})