public CommandNode(IPowerShellVfs vfs, OrchardCommand command) : base(vfs, command.CommandName, command) { }
/// <summary> /// Invokes the Orchard command using the 'CommandObject' parameters set. /// </summary> /// <param name="tenantName">The name of the Orchard tenant on which the command will be executed.</param> /// <param name="command"> /// The <see cref="OrchardCommand"/> object which represents the orchard command to execute. /// </param> /// <param name="parameters">The switches which will be passed to the executed command.</param> /// <param name="directConsole"> /// <c>true</c> to force orchard output directly into <see cref="Console.Out"/>; otherwise, <c>false</c>. /// </param> /// <returns>The command's output.</returns> private string InvokeCommandObject(string tenantName, OrchardCommand command, ArrayList parameters, bool directConsole) { var arguments = new List<string>(command.CommandName.Split(new[] { ' ' })); var switches = new Dictionary<string, string>(); return this.InvokeWithParameters(tenantName, arguments, switches, parameters, directConsole); }