Skip to content

Commit

Permalink
Merge pull request withfig#262 from seonggwonyoon/master
Browse files Browse the repository at this point in the history
[BREW] Add commands, update options
  • Loading branch information
Brendan Falk authored Jun 5, 2021
2 parents 8c941af + 5c79c0a commit bd1a7a4
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions dev/brew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,30 @@ export const completionSpec: Fig.Spec = {
name: "leaves",
description:
"List installed formulae that are not dependencies of another installed formula",
options: [
{
name: ["-r", "--installed-on-request"],
description: "Show manually installed formula.",
},
{
name: ["-p", "--installed-as-dependency"],
description: "Show installed formula as dependencies.",
},
],
},
{
name: "doctor",
description: "Check your system for potential problems",
options: [
{
name: "--list-checks",
description: "List all audit methods.",
},
{
name: ["-D", "--audit-debug"],
description: "Enable debugging and profiling of audit methods.",
},
],
},
{
name: "info",
Expand Down Expand Up @@ -165,6 +185,37 @@ export const completionSpec: Fig.Spec = {
},
],
},
{
name: "cleanup",
insertValue: "cleanup ",
description:
"Remove stale lock files and outdated downloads for all formulae and casks and remove old versions of installed formulae.",
options: [
{
name: ["--prune", "--prune=all"],
description: "Remove all cache files older than specified days.",
},
{
name: ["-n", "--dry-run"],
description:
"Show what would be removed, but do not actually remove anything.",
},
{
name: "-s",
description:
"Scrub the cache, including downloads for even the latest versions.",
},
{
name: "--prune-prefix",
description:
"Only prune the symlinks and directories from the prefix and remove no other files.",
},
],
args: {
variadic: true,
generators: generators.servicesGenerator,
},
},
{
name: "services",
description:
Expand Down

0 comments on commit bd1a7a4

Please sign in to comment.