public static void PrerequisiteCheck() { if (!CommandUtility.ExistCommand(Constants.PdfCommandName)) { throw new DocfxException(Constants.PdfCommandNotExistMessage); } }
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); }
private static bool ExistGitCommand() { return(CommandUtility.ExistCommand(CommandName)); }