public int Main(GitTfsCommand command, IList <string> unparsedArgs) { Trace.WriteLine(_gitTfsVersionProvider.GetVersionString()); if (_globals.ShowHelp) { return(_help.ShowHelp(command)); } else if (_globals.ShowVersion) { Trace.TraceInformation(_gitTfsVersionProvider.GetVersionString()); Trace.TraceInformation(GitTfsConstants.MessageForceVersion); return(GitTfsExitCodes.OK); } else { try { return(_runner.Run(command, unparsedArgs)); } finally { _container.GetInstance <Janitor>().Dispose(); } } }
private void DescribeGitTfs() { // add a line of whitespace to improve readability stdout.WriteLine(); stdout.WriteLine(versionProvider.GetVersionString()); stdout.WriteLine(" " + versionProvider.GetPathToGitTfsExecutable()); }
public int Run() { stdout.WriteLine(versionProvider.GetVersionString()); stdout.WriteLine(versionProvider.GetPathToGitTfsExecutable()); return(GitTfsExitCodes.OK); }
private void DescribeGitTfs() { DisplayReadabilityLineJump(); _stdout.WriteLine(_versionProvider.GetVersionString()); _stdout.WriteLine(" " + _versionProvider.GetPathToGitTfsExecutable()); DescribeGitRepository(); }
public int Main(GitTfsCommand command, IList <string> unparsedArgs) { Trace.WriteLine(_gitTfsVersionProvider.GetVersionString()); if (_globals.ShowHelp) { return(_help.ShowHelp(command)); } else if (_globals.ShowVersion) { _container.GetInstance <TextWriter>().WriteLine(_gitTfsVersionProvider.GetVersionString()); return(GitTfsExitCodes.OK); } else { return(_runner.Run(command, unparsedArgs)); } }
public int Run() { Trace.TraceInformation(_versionProvider.GetVersionString()); Trace.TraceInformation(_versionProvider.GetPathToGitTfsExecutable()); Trace.TraceInformation(GitTfsConstants.MessageForceVersion); return(GitTfsExitCodes.OK); }
private void DescribeGitTfs() { DisplayReadabilityLineJump(); Trace.TraceInformation(_versionProvider.GetVersionString()); Trace.TraceInformation(" " + _versionProvider.GetPathToGitTfsExecutable()); Trace.TraceInformation(GitTfsConstants.MessageForceVersion); DescribeGitRepository(); }