/// <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)); } }
public void Color(BranchColorWhen when = BranchColorWhen.Always) => AddArgument(KnownArguments.Color(when));