-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
NuGet
with delete
, verify
and sign
commands.
- Loading branch information
Showing
11 changed files
with
1,894 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,567 changes: 1,567 additions & 0 deletions
1,567
Nuke.NuGetKeyVaultSignTool/Tools/NuGet.Generated.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,311 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/nuke-build/nuke/master/source/Nuke.Tooling.Generator/schema.json", | ||
"references": [ | ||
"https://raw.githubusercontent.com/NuGet/docs.microsoft.com-nuget/live/docs/tools/cli-ref-pack.md", | ||
"https://raw.githubusercontent.com/NuGet/docs.microsoft.com-nuget/live/docs/tools/cli-ref-push.md", | ||
"https://raw.githubusercontent.com/NuGet/docs.microsoft.com-nuget/live/docs/tools/cli-ref-restore.md", | ||
"https://raw.githubusercontent.com/NuGet/docs.microsoft.com-nuget/live/docs/tools/cli-ref-sources.md", | ||
"https://raw.githubusercontent.com/NuGet/docs.microsoft.com-nuget/master/docs/reference/cli-reference/cli-ref-install.md" | ||
], | ||
"name": "NuGet", | ||
"officialUrl": "https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference", | ||
"help": "The NuGet Command Line Interface (CLI) provides the full extent of NuGet functionality to install, create, publish, and manage packages.", | ||
"nugetPackageId": "NuGet.CommandLine", | ||
"packageExecutable": "NuGet.exe", | ||
"tasks": [ | ||
{ | ||
"postfix": "Delete", | ||
"definiteArgument": "delete", | ||
"settingsClass": { | ||
"properties": [ | ||
{ | ||
"name": "PackageId", | ||
"type": "string", | ||
"format": "{value}", | ||
"help": "Package Id to delete. The exact behavior depends on the source. For local folders, for instance, the package is deleted; for nuget.org the package is unlisted." | ||
}, | ||
{ | ||
"name": "PackageVersion", | ||
"type": "string", | ||
"format": "{value}", | ||
"help": "Package Version to delete. The exact behavior depends on the source. For local folders, for instance, the package is deleted; for nuget.org the package is unlisted." | ||
}, | ||
{ | ||
"name": "ApiKey", | ||
"type": "string", | ||
"format": "-ApiKey {value}", | ||
"secret": true, | ||
"help": "The API key for the target repository. If not present, the one specified in <em>%AppData%\\NuGet\\NuGet.Config</em> is used." | ||
}, | ||
{ | ||
"name": "ConfigFile", | ||
"type": "string", | ||
"format": "-ConfigFile {value}", | ||
"help": "The NuGet configuration file to apply. If not specified, <c>%AppData%\\NuGet\\NuGet.Config</c> (Windows) or <c>~/.nuget/NuGet/NuGet.Config</c> (Mac/Linux) is used." | ||
}, | ||
{ | ||
"name": "ForceEnglishOutput", | ||
"type": "bool", | ||
"format": "-ForceEnglishOutput", | ||
"help": "<em>(3.5+)</em> Forces nuget.exe to run using an invariant, English-based culture." | ||
}, | ||
{ | ||
"name": "NonInteractive", | ||
"type": "bool", | ||
"format": "-NonInteractive", | ||
"help": "Suppresses prompts for user input or confirmations." | ||
}, | ||
{ | ||
"name": "NoPrompt", | ||
"type": "bool", | ||
"format": "-NoPrompt", | ||
"help": "Do not prompt when deleting." | ||
}, | ||
{ | ||
"name": "Source", | ||
"type": "string", | ||
"format": "-Source {value}", | ||
"help": "Specifies the server URL. NuGet identifies a UNC or local folder source and simply copies the file there instead of pushing it using HTTP. Also, starting with NuGet 3.4.2, this is a mandatory parameter unless the <em>NuGet.Config</em> file specifies a <em>DefaultPushSource</em> value (see <a href=\"https://docs.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior\">Configuring NuGet behavior</a>)." | ||
}, | ||
{ | ||
"name": "Verbosity", | ||
"type": "NuGetVerbosity", | ||
"format": "-Verbosity {value}", | ||
"help": "Specifies the amount of detail displayed in the output: <em>normal</em>, <em>quiet</em>, <em>detailed</em>." | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"postfix": "Sign", | ||
"definiteArgument": "sign", | ||
"settingsClass": { | ||
"properties": [ | ||
{ | ||
"name": "TargetPath", | ||
"type": "string", | ||
"format": "{value}", | ||
"help": "Path of the package to sign." | ||
}, | ||
{ | ||
"name": "CertificateFingerprint", | ||
"type": "string", | ||
"format": "-CertificateFingerprint {value}", | ||
"help": "Specifies the fingerprint to be used to search for the certificate in a local certificate store." | ||
}, | ||
{ | ||
"name": "CertificatePassword", | ||
"type": "string", | ||
"format": "-CertificatePassword {value}", | ||
"secret": true, | ||
"help": "Specifies the certificate password, if needed. If a certificate is password protected but no password is provided, the command will prompt for a password at run time, unless the -NonInteractive option is passed." | ||
}, | ||
{ | ||
"name": "CertificatePath", | ||
"type": "string", | ||
"format": "-CertificatePath {value}", | ||
"help": "Specifies the file path to the certificate to be used in signing the package." | ||
}, | ||
{ | ||
"name": "CertificateStoreLocation", | ||
"type": "string", | ||
"format": "-CertificateStoreLocation {value}", | ||
"help": "Specifies the name of the X.509 certificate store use to search for the certificate. Defaults to 'CurrentUser', the X.509 certificate store used by the current user. This option should be used when specifying the certificate via -CertificateSubjectName or -CertificateFingerprint options." | ||
}, | ||
{ | ||
"name": "CertificateStoreName", | ||
"type": "string", | ||
"format": "-CertificateStoreName {value}", | ||
"help": "Specifies the name of the X.509 certificate store to use to search for the certificate. Defaults to 'My', the X.509 certificate store for personal certificates. This option should be used when specifying the certificate via -CertificateSubjectName or -CertificateFingerprint options." | ||
}, | ||
{ | ||
"name": "CertificateSubjectName", | ||
"type": "string", | ||
"format": "-CertificateSubjectName {value}", | ||
"help": "Specifies the subject name of the certificate used to search a local certificate store for the certificate. The search is a case-insensitive string comparison using the supplied value, which will find all certificates with the subject name containing that string, regardless of other subject values. The certificate store can be specified by -CertificateStoreName and -CertificateStoreLocation options." | ||
}, | ||
{ | ||
"name": "HashAlgorithm", | ||
"type": "NuGetSignHashAlgorithm", | ||
"format": "-HashAlgorithm {value}", | ||
"help": "Hash algorithm to be used to sign the package. Defaults to SHA256. Possible values are SHA256, SHA384, and SHA512." | ||
}, | ||
{ | ||
"name": "OutputDirectory", | ||
"type": "string", | ||
"format": "-OutputDirectory {value}", | ||
"help": "Specifies the directory where the signed package should be saved. By default the original package is overwritten by the signed package." | ||
}, | ||
{ | ||
"name": "Overwrite", | ||
"type": "bool", | ||
"format": "-Overwrite", | ||
"help": "Switch to indicate if the current signature should be overwritten. By default the command will fail if the package already has a signature." | ||
}, | ||
{ | ||
"name": "Timestamper", | ||
"type": "string", | ||
"format": "-Timestamper {value}", | ||
"help": "URL to an RFC 3161 timestamping server." | ||
}, | ||
{ | ||
"name": "TimestampHashAlgorithm", | ||
"type": "NuGetSignHashAlgorithm", | ||
"format": "-TimestampHashAlgorithm {value}", | ||
"help": "Hash algorithm to be used by the RFC 3161 timestamp server. Defaults to SHA256." | ||
}, | ||
{ | ||
"name": "ConfigFile", | ||
"type": "string", | ||
"format": "-ConfigFile {value}", | ||
"help": "The NuGet configuration file to apply. If not specified, <c>%AppData%\\NuGet\\NuGet.Config</c> (Windows) or <c>~/.nuget/NuGet/NuGet.Config</c> (Mac/Linux) is used." | ||
}, | ||
{ | ||
"name": "ForceEnglishOutput", | ||
"type": "bool", | ||
"format": "-ForceEnglishOutput", | ||
"help": "<em>(3.5+)</em> Forces nuget.exe to run using an invariant, English-based culture." | ||
}, | ||
{ | ||
"name": "NonInteractive", | ||
"type": "bool", | ||
"format": "-NonInteractive", | ||
"help": "Suppresses prompts for user input or confirmations." | ||
}, | ||
{ | ||
"name": "Verbosity", | ||
"type": "NuGetVerbosity", | ||
"format": "-Verbosity {value}", | ||
"help": "Specifies the amount of detail displayed in the output: <em>normal</em>, <em>quiet</em>, <em>detailed</em>." | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"postfix": "Verify", | ||
"definiteArgument": "verify", | ||
"settingsClass": { | ||
"properties": [ | ||
{ | ||
"name": "Signatures", | ||
"type": "string", | ||
"format": "-Signatures {value}", | ||
"help": "Path of the package to verify Signatures." | ||
}, | ||
{ | ||
"name": "CertificateFingerprint", | ||
"type": "string", | ||
"format": "-CertificateFingerprint {value}", | ||
"help": "Specifies one or more SHA-256 certificate fingerprints of certificates(s) which signed packages must be signed with. A certificate SHA-256 fingerprint is a SHA-256 hash of the certificate. Multiple inputs should be semicolon separated." | ||
}, | ||
{ | ||
"name": "ConfigFile", | ||
"type": "string", | ||
"format": "-ConfigFile {value}", | ||
"help": "The NuGet configuration file to apply. If not specified, <c>%AppData%\\NuGet\\NuGet.Config</c> (Windows) or <c>~/.nuget/NuGet/NuGet.Config</c> (Mac/Linux) is used." | ||
}, | ||
{ | ||
"name": "ForceEnglishOutput", | ||
"type": "bool", | ||
"format": "-ForceEnglishOutput", | ||
"help": "<em>(3.5+)</em> Forces nuget.exe to run using an invariant, English-based culture." | ||
}, | ||
{ | ||
"name": "NonInteractive", | ||
"type": "bool", | ||
"format": "-NonInteractive", | ||
"help": "Suppresses prompts for user input or confirmations." | ||
}, | ||
{ | ||
"name": "Verbosity", | ||
"type": "NuGetVerbosity", | ||
"format": "-Verbosity {value}", | ||
"help": "Specifies the amount of detail displayed in the output: <em>normal</em>, <em>quiet</em>, <em>detailed</em>." | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"commonTaskPropertySets": { | ||
"sources": [ | ||
{ | ||
"name": "ConfigFile", | ||
"type": "string", | ||
"format": "-ConfigFile {value}", | ||
"help": "The NuGet configuration file to apply. If not specified, <c>%AppData%\\NuGet\\NuGet.Config</c> (Windows) or <c>~/.nuget/NuGet/NuGet.Config</c> (Mac/Linux) is used." | ||
}, | ||
{ | ||
"name": "ForceEnglishOutput", | ||
"type": "bool", | ||
"format": "-ForceEnglishOutput", | ||
"help": "<em>(3.5+)</em> Forces nuget.exe to run using an invariant, English-based culture." | ||
}, | ||
{ | ||
"name": "NonInteractive", | ||
"type": "bool", | ||
"format": "-NonInteractive", | ||
"help": "Suppresses prompts for user input or confirmations." | ||
}, | ||
{ | ||
"name": "Verbosity", | ||
"type": "NuGetVerbosity", | ||
"format": "-Verbosity {value}", | ||
"help": "Specifies the amount of detail displayed in the output: <em>normal</em>, <em>quiet</em>, <em>detailed</em>." | ||
} | ||
], | ||
"sources_single": [ | ||
{ | ||
"name": "Name", | ||
"type": "string", | ||
"format": "-Name {value}", | ||
"help": "Name of the source." | ||
} | ||
], | ||
"sources_add_update": [ | ||
{ | ||
"name": "Source", | ||
"type": "string", | ||
"format": "-Source {value}", | ||
"help": "URL of the source." | ||
}, | ||
{ | ||
"name": "Password", | ||
"type": "string", | ||
"format": "-Password {value}", | ||
"secret": true, | ||
"help": "Specifies the password for authenticating with the source." | ||
}, | ||
{ | ||
"name": "StorePasswordInClearText", | ||
"type": "bool", | ||
"format": "-StorePasswordInClearText", | ||
"secret": false, | ||
"help": "Indicates to store the password in unencrypted text instead of the default behavior of storing an encrypted form." | ||
}, | ||
{ | ||
"name": "UserName", | ||
"type": "string", | ||
"format": "-UserName {value}", | ||
"help": "Specifies the user name for authenticating with the source." | ||
} | ||
] | ||
}, | ||
"enumerations": [ | ||
{ | ||
"name": "NuGetVerbosity", | ||
"values": [ | ||
"Normal", | ||
"Quiet", | ||
"Detailed" | ||
] | ||
}, | ||
{ | ||
"name": "NuGetSignHashAlgorithm", | ||
"values": [ | ||
"sha256", | ||
"sha384", | ||
"sha512" | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.