예제 #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();
         }
     }
 }
예제 #2
0
파일: Info.cs 프로젝트: wundram/git-tfs
 private void DescribeGitTfs()
 {
     // add a line of whitespace to improve readability
     stdout.WriteLine();
     stdout.WriteLine(versionProvider.GetVersionString());
     stdout.WriteLine(" " + versionProvider.GetPathToGitTfsExecutable());
 }
예제 #3
0
파일: Version.cs 프로젝트: wundram/git-tfs
        public int Run()
        {
            stdout.WriteLine(versionProvider.GetVersionString());
            stdout.WriteLine(versionProvider.GetPathToGitTfsExecutable());

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

            DescribeGitRepository();
        }
예제 #5
0
파일: GitTfs.cs 프로젝트: wundram/git-tfs
 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));
     }
 }
예제 #6
0
        public int Run()
        {
            Trace.TraceInformation(_versionProvider.GetVersionString());
            Trace.TraceInformation(_versionProvider.GetPathToGitTfsExecutable());

            Trace.TraceInformation(GitTfsConstants.MessageForceVersion);

            return(GitTfsExitCodes.OK);
        }
예제 #7
0
파일: Info.cs 프로젝트: upzone/git-tfs
        private void DescribeGitTfs()
        {
            DisplayReadabilityLineJump();
            Trace.TraceInformation(_versionProvider.GetVersionString());
            Trace.TraceInformation(" " + _versionProvider.GetPathToGitTfsExecutable());

            Trace.TraceInformation(GitTfsConstants.MessageForceVersion);

            DescribeGitRepository();
        }