public static Command GetCommand(IServiceProvider serviceProvider) { var command = new Command("infra", "Infra commands") { DeployCommand.GetCommand(serviceProvider), GenHttpsCertCommand.GetCommand(serviceProvider), }; command.Handler = ActivatorUtilities.CreateInstance <InfraCommand>(serviceProvider); return(command); }