Benday.CommandsFramework.CmdUi
2.1.0
dotnet tool install --global Benday.CommandsFramework.CmdUi --version 2.1.0
dotnet new tool-manifest
dotnet tool install --local Benday.CommandsFramework.CmdUi --version 2.1.0
#tool dotnet:?package=Benday.CommandsFramework.CmdUi&version=2.1.0
nuke :add-package Benday.CommandsFramework.CmdUi --version 2.1.0
cmdui
A Blazor Server web UI shell for any CLI tool built with Benday.CommandsFramework.
Features
- Auto-generates a web-based UI from any CommandsFramework CLI tool
- Discovers all installed CommandsFramework tools when run without arguments
- Form-based command execution with validation
- Shows each argument's default value, and flags arguments that read from the tool's saved configuration
- Shows command aliases, including the aliases that supply preset argument values
- Real-time output display
- Working directory selection
Installation
dotnet tool install -g Benday.CommandsFramework.CmdUi
The package id is Benday.CommandsFramework.CmdUi; the command it installs is cmdui.
Usage
Launch UI for a specific tool
cmdui slnutil
Discover all installed tools
cmdui
Launch from within a tool
Any CommandsFramework-based tool can launch cmdui directly:
slnutil gui
About
Written by Benjamin Day Pluralsight Author | Microsoft MVP | Scrum.org Professional Scrum Trainer https://www.benday.com info@benday.com
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
v2.1.0 - Reads the v5.1 schema (version 3), which says which argument syntax the tool accepts, and builds command lines in that syntax -- the POSIX '--name=value' form for a tool that takes it, and the original '/name:value' form for a tool that predates it. A schema that does not carry the property came from a tool that only accepts the slash form, so that is what is assumed.
v2.0.0 - Reads both the v4 schema (a bare array) and the v5 schema (an object with SchemaVersion), telling them apart from the root JSON token, so one copy of cmdui works with whatever mix of tools is installed. Says so and points at 'dotnet tool update' when a tool reports a schema version it does not understand, rather than guessing. Commands now carry their group.
v1.2.0 - Added support for the Benday.CommandsFramework v4.19 schema. File and directory arguments now say so on the form, including whether the path has to already exist.
v1.1.0 - Added support for the Benday.CommandsFramework v4.18 schema. Arguments now show their configured default value and indicate when they read from the tool's saved configuration. Commands now show their aliases, including the aliases that supply preset argument values.
v1.0.0 - Initial release. Auto-generates web UI for CommandsFramework CLI tools with tool discovery, form-based command execution, and working directory selection.