Beispiel #1
0
 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();
         }
     }
 }
Beispiel #2
0
 private void DescribeGitTfs()
 {
     // add a line of whitespace to improve readability
     stdout.WriteLine();
     stdout.WriteLine(versionProvider.GetVersionString());
     stdout.WriteLine(" " + versionProvider.GetPathToGitTfsExecutable());
 }
Beispiel #3
0
        public int Run()
        {
            stdout.WriteLine(versionProvider.GetVersionString());
            stdout.WriteLine(versionProvider.GetPathToGitTfsExecutable());

            return(GitTfsExitCodes.OK);
        }
Beispiel #4
0
        private void DescribeGitTfs()
        {
            DisplayReadabilityLineJump();
            _stdout.WriteLine(_versionProvider.GetVersionString());
            _stdout.WriteLine(" " + _versionProvider.GetPathToGitTfsExecutable());

            DescribeGitRepository();
        }
Beispiel #5
0
 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));
     }
 }
Beispiel #6
0
        public int Run()
        {
            Trace.TraceInformation(_versionProvider.GetVersionString());
            Trace.TraceInformation(_versionProvider.GetPathToGitTfsExecutable());

            Trace.TraceInformation(GitTfsConstants.MessageForceVersion);

            return(GitTfsExitCodes.OK);
        }
Beispiel #7
0
        private void DescribeGitTfs()
        {
            DisplayReadabilityLineJump();
            Trace.TraceInformation(_versionProvider.GetVersionString());
            Trace.TraceInformation(" " + _versionProvider.GetPathToGitTfsExecutable());

            Trace.TraceInformation(GitTfsConstants.MessageForceVersion);

            DescribeGitRepository();
        }