Ejemplo n.º 1
0
        private async Task <CommandReturnCodes> RunCommandInSessionAsync(CommandHostContext context, string command)
        {
            var args = new OrchardParametersParser().Parse(new CommandParametersParser().Parse(new CommandParser().Parse(command)));

            return(await context.CommandHost.RunCommandAsync(_input, _output, args.Tenant, args.Arguments.ToArray(), args.Switches));
        }
Ejemplo n.º 2
0
 private CommandReturnCodes RunCommandInSession(CommandHostContext context, string command)
 {
     var args = new OrchardParametersParser().Parse(new CommandParametersParser().Parse(new CommandLineParser().Parse(command)));
     return context.CommandHost.RunCommand(_input, _output, args.Tenant, args.Arguments.ToArray(), args.Switches);
 }
Ejemplo n.º 3
0
        private CommandReturnCodes RunCommandInSession(CommandHostContext context, string command)
        {
            var args = new OrchardParametersParser().Parse(new CommandParametersParser().Parse(new CommandLineParser().Parse(command)));

            return(context.CommandHost.RunCommand(_input, _output, args.Tenant, args.Arguments.ToArray(), args.Switches));
        }
Ejemplo n.º 4
0
 private async Task<CommandReturnCodes> RunCommandInSessionAsync(CommandHostContext context, string command)
 {
     var args = new OrchardParametersParser().Parse(new CommandParametersParser().Parse(new CommandParser().Parse(command)));
     return await context.CommandHost.RunCommandAsync(_input, _output, args.Tenant, args.Arguments.ToArray(), args.Switches);
 }