ZeroInstall.Publish.Capture.CommandMapper.GetCommandTuple C# (CSharp) Method

GetCommandTuple() private static method

private static GetCommandTuple ( string installationDir, Command command, bool escapePath ) : CommandTuple
installationDir string
command Command
escapePath bool
return CommandTuple
        private static CommandTuple GetCommandTuple(string installationDir, Command command, bool escapePath)
        {
            string path = Path.Combine(installationDir, command.Path.Replace('/', Path.DirectorySeparatorChar));
            string arguments = command.Arguments.Select(arg => arg.ToString()).JoinEscapeArguments();

            string commmandLine = escapePath ? ("\"" + path + "\"") : path;
            if (!string.IsNullOrEmpty(arguments)) commmandLine += " " + arguments;
            return new CommandTuple(commmandLine, command);
        }