-
Notifications
You must be signed in to change notification settings - Fork 0
Advanced
Sebastien Pouliot edited this page Feb 13, 2022
·
2 revisions
Spectre.Console.Cli
provides some default, hidden options that can
prove useful to you, in particular if you want to dynamically call any
of the commands from any version of the tool.
$ cilout cli version
Spectre.Cli version 0.43.0+168f35202d3050c17770e0606bc736e2e88b59c4
Spectre.Console version 0.43.0+168f35202d3050c17770e0606bc736e2e88b59c4
$ cilout cli xmldoc
<?xml version="1.0" encoding="utf-8"?>
<Model>
<!--IS-TRIMMABLE-->
<Command Name="is-trimmable" IsBranch="false" ClrType="CilOut.IsTrimmableCommand" Settings="CilOut.IsTrimmableCommand+Settings">
<Parameters>
<Argument Name="assembly" Position="0" Required="true" Kind="scalar" ClrType="System.String">
<Description>Assembly to verify for presence of `[[assembly: AssemblyMetadata ("Trimmable", "true")]]`</Description>
</Argument>
<Option Short="q" Long="quiet" Value="NULL" Required="false" Kind="flag" ClrType="System.Boolean">
<Description>No visible output. Use return code.</Description>
</Option>
</Parameters>
</Command>
</Model>
$ cilout cli explain
CLI Configuration
├── Application Name cilout
├── Parsing Mode: Relaxed
└── Commands
└── is-trimmable
├── Description: (no description)
├── Type CilOut.IsTrimmableCommand
├── Settings Type: CilOut.IsTrimmableCommand+Settings
└── Parameters
├── Assembly assembly position 0 System.String
└── Quiet --quiet | -q System.Boolean
You can set V
to get extra verbosity when exicuting cilout
. For
example this will print out exceptions on the console.