chore: bootstrap repository foundation
Solution layout, build rules with zero-package guard, in-house test framework, localization runtime, brand mark rasteriser with ICO/PNG generation, Core contracts (imaging, video, domain model, TIFF reader), Titano.Tools (make-icon, i18n, xaml-lint, package-guard) and docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
109 files changed
+7523
No files matched your search
@@ -0,0 +1,34 @@
|
||||
using Titano.Tools;
|
||||
using Titano.Tools.Commands;
|
||||
|
||||
var commands = new ICommand[]
|
||||
{
|
||||
new MakeIconCommand(),
|
||||
new I18nCommand(),
|
||||
new XamlLintCommand(),
|
||||
new PackageGuardCommand(),
|
||||
};
|
||||
|
||||
if (args.Length == 0 || args[0] is "-h" or "--help" or "help")
|
||||
{
|
||||
Console.WriteLine("Titano.Tools <command> [options]");
|
||||
foreach (var c in commands) Console.WriteLine($" {c.Name,-14} {c.Summary}");
|
||||
return args.Length == 0 ? 2 : 0;
|
||||
}
|
||||
|
||||
var command = commands.FirstOrDefault(c => c.Name.Equals(args[0], StringComparison.OrdinalIgnoreCase));
|
||||
if (command is null)
|
||||
{
|
||||
Console.Error.WriteLine($"Unknown command '{args[0]}'. Run with --help.");
|
||||
return 2;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
return await command.RunAsync(args[1..]);
|
||||
}
|
||||
catch (ToolException ex)
|
||||
{
|
||||
Console.Error.WriteLine(ex.Message);
|
||||
return 2;
|
||||
}
|
||||
Reference in new issue
Block a user