コード例 #1
0
        /// <summary>
        /// Visists a project.
        /// </summary>
        /// <param name="directory">The directory of the project.</param>
        /// <param name="config">The <see cref="GitDependFile"/> with project configuration information.</param>
        /// <returns>The return code.</returns>
        public ReturnCode VisitProject(string directory, GitDependFile config)
        {
            _console.WriteLine(Force
                ? $"forcefully deleting the {BranchName} branch from {config.Name}"
                : $"Deleting the {BranchName} branch from {config.Name}");

            _git.WorkingDirectory = directory;
            return(ReturnCode = _git.DeleteBranch(BranchName, Force));
        }