Sep.Git.Tfs.Commands.Init.HideUserCredentials C# (CSharp) Method

HideUserCredentials() public static method

public static HideUserCredentials ( string commandLineRun ) : string
commandLineRun string
return string
        public static string HideUserCredentials(string commandLineRun)
        {
            Regex rgx = new Regex("(--username|-u)[= ][^ ]+");
            commandLineRun = rgx.Replace(commandLineRun, "--username=xxx");
            rgx = new Regex("(--password|-p)[= ][^ ]+");
            return rgx.Replace(commandLineRun, "--password=xxx");
        }