feat: implement all CLI command groups (10 groups, 11 files)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.CommandLine;
|
||||
using System.CommandLine.Parsing;
|
||||
using ScadaLink.CLI.Commands;
|
||||
|
||||
var rootCommand = new RootCommand("ScadaLink CLI — manage the ScadaLink SCADA system");
|
||||
|
||||
@@ -14,7 +15,18 @@ rootCommand.Add(usernameOption);
|
||||
rootCommand.Add(passwordOption);
|
||||
rootCommand.Add(formatOption);
|
||||
|
||||
// Placeholder — command groups will be added in Task 6
|
||||
// Register command groups
|
||||
rootCommand.Add(TemplateCommands.Build(contactPointsOption, formatOption));
|
||||
rootCommand.Add(InstanceCommands.Build(contactPointsOption, formatOption));
|
||||
rootCommand.Add(SiteCommands.Build(contactPointsOption, formatOption));
|
||||
rootCommand.Add(DeployCommands.Build(contactPointsOption, formatOption));
|
||||
rootCommand.Add(DataConnectionCommands.Build(contactPointsOption, formatOption));
|
||||
rootCommand.Add(ExternalSystemCommands.Build(contactPointsOption, formatOption));
|
||||
rootCommand.Add(NotificationCommands.Build(contactPointsOption, formatOption));
|
||||
rootCommand.Add(SecurityCommands.Build(contactPointsOption, formatOption));
|
||||
rootCommand.Add(AuditLogCommands.Build(contactPointsOption, formatOption));
|
||||
rootCommand.Add(HealthCommands.Build(contactPointsOption, formatOption));
|
||||
|
||||
rootCommand.SetAction(_ =>
|
||||
{
|
||||
Console.WriteLine("Use --help to see available commands.");
|
||||
|
||||
Reference in New Issue
Block a user