Class VerbosityOptionsExtensions
- Namespace
- Invex.Atom.Module.Dotnet.Cli
- Assembly
- Invex.Atom.Module.Dotnet.dll
Provides extension methods for VerbosityOptions to convert them to their string representations.
public static class VerbosityOptionsExtensions
- Inheritance
-
objectVerbosityOptionsExtensions
Methods
ToCliArg(VerbosityOptions)
Converts the VerbosityOptions enum value to its corresponding .NET CLI string argument.
public static string ToCliArg(this VerbosityOptions verbosityOptions)
Parameters
verbosityOptionsVerbosityOptions
Returns
- string
The string representation of the verbosity option (e.g., "quiet", "minimal").
Remarks
Use this instead of System.Enum.ToString(), which returns the PascalCase member name (e.g.
Quiet) rather than the lowercase value the CLI expects.
Exceptions
- ArgumentOutOfRangeException
Thrown if the verbosity option is not a valid value.