Class PackageEcosystemExtensions
- Namespace
- Invex.StructuredText.GithubActions.DependabotConfigModel.Model
- Assembly
- Invex.StructuredText.GithubActions.dll
Extension methods for PackageEcosystem.
public static class PackageEcosystemExtensions
- Inheritance
-
objectPackageEcosystemExtensions
Methods
ToYamlValue(PackageEcosystem)
Gets the package-ecosystem YAML value for ecosystem, for use with
PackageEcosystem.
public static string ToYamlValue(this PackageEcosystem ecosystem)
Parameters
ecosystemPackageEcosystemThe package ecosystem.
Returns
- string
The value Dependabot expects, such as
nugetorgithub-actions.
Exceptions
- ArgumentOutOfRangeException
ecosystemis not a defined PackageEcosystem value.