forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdotnet-remove.ts
35 lines (32 loc) · 931 Bytes
/
dotnet-remove.ts
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
import { filepaths } from "@fig/autocomplete-generators";
const projectGenerator = filepaths({ extensions: ["csproj"] });
const completionSpec: Fig.Spec = {
name: "remove",
args: {
name: "project",
description:
"Specifies the project file. If not specified, the command searches the current directory for one",
isOptional: true,
generators: projectGenerator,
},
subcommands: [
{
name: "package",
description:
"The dotnet remove package command provides a convenient option to remove a NuGet package reference from a project",
args: {
name: "id",
},
},
{
name: "reference",
description:
"The dotnet remove reference command provides a convenient option to remove project references from a project",
args: {
name: "ref",
generators: projectGenerator,
},
},
],
};
export default completionSpec;