Everlong.CommandLine 0.1.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Everlong.CommandLine --version 0.1.0
                    
NuGet\Install-Package Everlong.CommandLine -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Everlong.CommandLine" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Everlong.CommandLine" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Everlong.CommandLine" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Everlong.CommandLine --version 0.1.0
                    
#r "nuget: Everlong.CommandLine, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Everlong.CommandLine@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Everlong.CommandLine&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Everlong.CommandLine&version=0.1.0
                    
Install as a Cake Tool

Everlong.CommandLine

Everlong.CommandLine is a command-tree based CLI framework built on System.CommandLine. It grows out of the internals of Psm (personal scripts manager) and powers its command tree, interactive menus and service injection.

dotnet add package Everlong.CommandLine

⚠️ Early development: depends on System.CommandLine 3.x preview; API may change before 1.0.


What's included

Area Types
Command base CommandBase (auto-registers ExecuteAsync as the action), RunInteractiveAsync
Interactive UI InteractiveMenu (subcommand picker, ↑↓ select, inline args), IInteractiveCommand (leaf custom UI)
DI IProvider (command-tree scoped services), ParseResultExtensions.ActivateBranch() + ChainInjector
Helpers ConsoleHelper, ProcessRunner, GitHelper, FileHelper, FileSystemWalker, FormatHelper, WildcardHelper
Windows WindowsHelper (UAC elevate), DialogHelper (WinForms pickers via embedded PowerShell)

Requirements

  • .NET 8+
  • LangVersion preview (the codebase uses C# 14 field keyword; a .NET 10 SDK compiler is recommended)

Quick Start

using System.CommandLine;
using Everlong.CommandLine;

var root = new RootCommand("my tool");
// build your command tree from CommandBase subclasses, then:

ParseResult pr = root.Parse(args);
return await pr.ActivateBranch().InvokeAsync();

Subcommands inherit CommandBase, override Execute(ParseResult) (sync) or ExecuteAsync(ParseResult, CancellationToken) (async, cancellable), and receive services through [Inject] from the nearest IProvider ancestor (via Everlong.DI).

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 66 9/2/2026
0.1.0 75 8/7/2026

0.1.0: Initial release — CommandBase command-tree base, interactive subcommand menu, chain DI injection (ActivateBranch), console/process/git/file/windows helpers.