forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdotnet-pack.ts
103 lines (101 loc) · 3.49 KB
/
dotnet-pack.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import { filepaths } from "@fig/autocomplete-generators";
const completionSpec: Fig.Spec = {
name: "pack",
description:
"The dotnet pack command builds the project and creates NuGet packages. The result of this command is a NuGet package (that is, a .nupkg file)",
args: {
name: "project",
description:
"The project or solution to pack. It's either a path to a csproj, vbproj, or fsproj file, or to a solution file or directory. If not specified, the command searches the current directory for a project or solution file",
generators: filepaths({ extensions: ["csproj", "sln"] }),
},
options: [
{
name: ["-c", "--configuration"],
description:
"Defines the build configuration. The default for most projects is Debug, but you can override the build configuration settings in your project",
args: {
name: "configuration",
suggestions: ["Debug", "Release"],
},
},
{
name: "--force",
description:
"Forces all dependencies to be resolved even if the last restore was successful. Specifying this flag is the same as deleting the project.assets.json file",
},
{
name: "--include-source",
description:
"Includes the debug symbols NuGet packages in addition to the regular NuGet packages in the output directory. The sources files are included in the src folder within the symbols package",
},
{
name: "--include-symbols",
description:
"Includes the debug symbols NuGet packages in addition to the regular NuGet packages in the output directory",
},
{
name: "--interactive",
description:
"Allows the command to stop and wait for user input or action. For example, to complete authentication. Available since .NET Core 3.0 SDK",
},
{
name: "--no-build",
description:
"Doesn't build the project before packing. It also implicitly sets the --no-restore flag",
},
{
name: "--no-dependencies",
description:
"Ignores project-to-project references and only restores the root project",
},
{
name: "--no-restore",
description:
"Doesn't execute an implicit restore when running the command",
},
{
name: "--nologo",
description:
"Doesn't display the startup banner or the copyright message. Available since .NET Core 3.0 SDK",
},
{
name: ["-o", "--output"],
description: "Places the built packages in the directory specified",
args: {
name: "directory",
template: "folders",
},
},
{
name: "--runtime",
description:
"Specifies the target runtime to restore packages for. For a list of Runtime Identifiers (RIDs), see the RID catalog",
args: {
name: "runtime",
},
},
{
name: ["-s", "--serviceable"],
description: "Sets the serviceable flag in the package",
},
{
name: "--version-suffix",
description:
"Defines the value for the $(VersionSuffix) MSBuild property in the project",
args: {
name: "suffix",
},
},
{
name: ["-v", "--verbosity"],
description:
"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. For more information, see LoggerVerbosity",
args: {
name: "verbosity",
suggestions: ["quiet", "minimal", "normal", "detailed", "diagnostic"],
},
},
],
};
export default completionSpec;