-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathcmd-patch.mts
More file actions
45 lines (41 loc) · 1.33 KB
/
cmd-patch.mts
File metadata and controls
45 lines (41 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { cmdPatchApply } from './cmd-patch-apply.mts'
import { cmdPatchCleanup } from './cmd-patch-cleanup.mts'
import { cmdPatchDiscover } from './cmd-patch-discover.mts'
import { cmdPatchDownload } from './cmd-patch-download.mts'
import { cmdPatchGet } from './cmd-patch-get.mts'
import { cmdPatchInfo } from './cmd-patch-info.mts'
import { cmdPatchList } from './cmd-patch-list.mts'
import { cmdPatchRm } from './cmd-patch-rm.mts'
import { cmdPatchStatus } from './cmd-patch-status.mts'
import { meowWithSubcommands } from '../../utils/cli/with-subcommands.mjs'
import type { CliSubcommand } from '../../utils/cli/with-subcommands.mjs'
const description = 'Manage CVE patches for dependencies'
const hidden = false
export const cmdPatch: CliSubcommand = {
description,
hidden,
async run(argv, importMeta, { parentName }) {
await meowWithSubcommands(
{
argv,
name: `${parentName} patch`,
importMeta,
subcommands: {
apply: cmdPatchApply,
cleanup: cmdPatchCleanup,
discover: cmdPatchDiscover,
download: cmdPatchDownload,
get: cmdPatchGet,
info: cmdPatchInfo,
list: cmdPatchList,
rm: cmdPatchRm,
status: cmdPatchStatus,
},
},
{
defaultSub: 'discover',
description,
},
)
},
}