ItTiger.TigerQuery.CliCore
0.8.1
dotnet add package ItTiger.TigerQuery.CliCore --version 0.8.1
NuGet\Install-Package ItTiger.TigerQuery.CliCore -Version 0.8.1
<PackageReference Include="ItTiger.TigerQuery.CliCore" Version="0.8.1" />
<PackageVersion Include="ItTiger.TigerQuery.CliCore" Version="0.8.1" />
<PackageReference Include="ItTiger.TigerQuery.CliCore" />
paket add ItTiger.TigerQuery.CliCore --version 0.8.1
#r "nuget: ItTiger.TigerQuery.CliCore, 0.8.1"
#:package ItTiger.TigerQuery.CliCore@0.8.1
#addin nuget:?package=ItTiger.TigerQuery.CliCore&version=0.8.1
#tool nuget:?package=ItTiger.TigerQuery.CliCore&version=0.8.1
ItTiger.TigerQuery.CliCore
Reusable TigerCli command group for SQL Server connection management, used by tiger-sqlcmd and other TigerQuery-family command-line tools.
This package is for developers building TigerCli applications, not for end users. Mount it in your app and you get a complete connections command group:
list/show— structured table and details outputadd/edit— parser-driven prompting, provider-backed selection (including live database enumeration), shared add/edit option surface, TigerCli.AsEdit()merge semanticsdelete- Domain validation with clear errors and enum-backed exit codes (
SqlServerConnectionExitCode) - en-US and pl-PL resources, merged behind your app's own resources so you can override any string
Profiles are stored through ItTiger.TigerQuery.Core, which this package depends on (along with ItTiger.TigerCli and ItTiger.Core).
Installation
dotnet add package ItTiger.TigerQuery.CliCore
Quick start
The public composition surface is SqlServerConnectionCommands (plus SqlServerConnectionCommandOptions and SqlServerConnectionExitCode); the individual command and settings types are intentionally internal.
using ItTiger.TigerCli.Commands;
using ItTiger.TigerQuery.CliCore;
using ItTiger.TigerQuery.Core;
var store = new SqlServerConnectionStore(
SqlServerConnectionStoreOptions.AppSpecific("YourVendor", "your-tool"));
var app = TigerCliApp.CreateBuilder()
.UseAssemblyMetadata(typeof(Program).Assembly)
// Chain your own ResourceManager(s) in front to override or localize strings.
.UseAppResources(SqlServerConnectionCommands.CreateAppResources())
.AddCommandGroup("connections", group =>
{
group.SetDescription("Manage saved connections");
SqlServerConnectionCommands.Configure(group, options =>
{
options.Store = store;
options.ValidationPolicy = SqlServerConnectionValidationPolicy.DatabaseOptional;
});
})
.Build();
return await app.RunAsync(args);
Your application keeps full ownership of everything around the group: overall app composition, themes, cultures, additional commands, and the application-wide exit-code policy (UseExitCodes(...)). The connection commands return their own documented SqlServerConnectionExitCode values (Ok = 0, InvalidArguments = 2, NotFound = 4, AlreadyExists = 5).
Localization
Command metadata, prompts, enum labels, and output are localized (en-US, pl-PL). CreateAppResources(params ResourceManager[]) returns a chained manager: your resource managers are consulted first, the built-in connection-command strings act as the fallback — register the result with TigerCli's UseAppResources(...).
Related packages
- ItTiger.TigerCli — the CLI framework this package plugs into.
- ItTiger.TigerQuery.Core — the connection-profile model and storage.
- ItTiger.TigerQuery — the sqlcmd-compatible script engine (not required by this package).
- tiger-sqlcmd — a complete CLI using this group in production.
Links
- Project page: https://www.ittiger.net/projects/tigerquery/
- Repository: https://github.com/rkozlowski/TigerQuery
- License: MIT
An open-source project by IT Tiger — https://www.ittiger.net/
| 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. |
-
net10.0
- ItTiger.Core (>= 0.8.0)
- ItTiger.TigerCli (>= 0.8.0)
- ItTiger.TigerQuery.Core (>= 0.8.1)
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.8.1 | 41 | 7/12/2026 |