Пример #1
0
 public static void PrerequisiteCheck()
 {
     if (!CommandUtility.ExistCommand(Constants.PdfCommandName))
     {
         throw new DocfxException(Constants.PdfCommandNotExistMessage);
     }
 }
Пример #2
0
        private static bool ExistGitCommand()
        {
            if (GitCommandExists == null)
            {
                lock (SyncRoot)
                {
                    if (GitCommandExists == null)
                    {
                        GitCommandExists = CommandUtility.ExistCommand(CommandName);
                        if (GitCommandExists != true)
                        {
                            Logger.LogInfo("Looks like Git is not installed globally. We depend on Git to extract repository information for source code and files.");
                        }
                    }
                }
            }

            return(GitCommandExists.Value);
        }
Пример #3
0
 private static bool ExistGitCommand()
 {
     return(CommandUtility.ExistCommand(CommandName));
 }