Exemplo n.º 1
0
            /// <summary>Color branches to highlight current, local, and remote-tracking branches.</summary>
            /// <param name="when">The value must be always (the default), never, or auto.</param>
            public static ICommandArgument Color(BranchColorWhen when)
            {
                switch (when)
                {
                case BranchColorWhen.Always: return(ColorAlways);

                case BranchColorWhen.Never:  return(ColorNever);

                case BranchColorWhen.Auto:   return(ColorAuto);

                default: throw new ArgumentException(nameof(when));
                }
            }
Exemplo n.º 2
0
 public void Color(BranchColorWhen when = BranchColorWhen.Always) => AddArgument(KnownArguments.Color(when));