HasSolutionDir() 공개 정적인 메소드

public static HasSolutionDir ( ) : bool
리턴 bool
예제 #1
0
 public static void FinishFeatureBranch_BeforeQueryStatus(object sender, EventArgs e)
 {
     ((OleMenuCommand)sender).Visible = EnvHelper.HasSolutionDir() && EnvHelper.IsGitFlow;
     ((OleMenuCommand)sender).Enabled = EnvHelper.HasSolutionDir() &&
                                        !string.IsNullOrWhiteSpace(EnvHelper.GitConfig.LastFeatureBranchFullName) &&
                                        EnvHelper.BranchName.StartsWith(EnvHelper.GitConfig.FeaturePrefix);
 }
예제 #2
0
 public static void GitHubFlow_BeforeQueryStatus(object sender, EventArgs e)
 {
     ((OleMenuCommand)sender).Visible = EnvHelper.HasSolutionDir() && !EnvHelper.IsGitFlow;
 }
예제 #3
0
 public static void SolutionVisibility_BeforeQueryStatus(object sender, EventArgs e)
 {
     ((OleMenuCommand)sender).Visible = EnvHelper.HasSolutionDir();
 }
예제 #4
0
 public static void Solution_BeforeQueryStatus(object sender, EventArgs e)
 {
     ((OleMenuCommand)sender).Enabled = EnvHelper.HasSolutionDir();
 }
예제 #5
0
 public static void Release_BeforeQueryStatus(object sender, EventArgs e)
 {
     ((OleMenuCommand)sender).Visible = EnvHelper.HasSolutionDir() && EnvHelper.IsGitFlow;
     ((OleMenuCommand)sender).Enabled = EnvHelper.HasSolutionDir() && EnvHelper.BranchName.StartsWith(EnvHelper.GitConfig.ReleasePrefix);
 }
예제 #6
0
 public static void StartFeatureBranch_BeforeQueryStatus(object sender, EventArgs e)
 {
     ((OleMenuCommand)sender).Visible = EnvHelper.HasSolutionDir() && EnvHelper.IsGitFlow;
     ((OleMenuCommand)sender).Enabled = EnvHelper.HasSolutionDir() && EnvHelper.BranchName.Equals(EnvHelper.GitConfig.LastFeatureBranchFullName);
 }
예제 #7
0
        public static void Feature_BeforeQueryStatus(object sender, EventArgs e)
        {
            var gitConfig = EnvHelper.GetGitConfig();

            ((OleMenuCommand)sender).Visible = EnvHelper.HasSolutionDir() && EnvHelper.IsGitFlow();
            ((OleMenuCommand)sender).Enabled = EnvHelper.HasSolutionDir() && EnvHelper.BranchNameStartsWith(gitConfig.FeaturePrefix);
        }