private string colorImpl(int code)(const string text)
import std.array : Appender;
import std.format : format;
sink.reserve(text.length + 9);
enum code = "\033[%dm".format(code);
alias default_ = colorImpl!(BashForeground.default_);
alias black = colorImpl!(BashForeground.black);
alias red = colorImpl!(BashForeground.red);
alias green = colorImpl!(BashForeground.green);
alias yellow = colorImpl!(BashForeground.yellow);
alias blue = colorImpl!(BashForeground.blue);
alias magenta = colorImpl!(BashForeground.magenta);
alias cyan = colorImpl!(BashForeground.cyan);
alias lightgrey = colorImpl!(BashForeground.lightgrey);
alias darkgrey = colorImpl!(BashForeground.darkgrey);
alias lightred = colorImpl!(BashForeground.lightred);
alias lightgreen = colorImpl!(BashForeground.lightgreen);
alias lightyellow = colorImpl!(BashForeground.lightyellow);
alias lightblue = colorImpl!(BashForeground.lightblue);
alias lightmagenta = colorImpl!(BashForeground.lightmagenta);
alias lightcyan = colorImpl!(BashForeground.lightcyan);
alias white = colorImpl!(BashForeground.white);
alias bright = colorImpl!(BashFormat.bright);
alias dim = colorImpl!(BashFormat.dim);
alias underlined = colorImpl!(BashFormat.underlined);
alias blink = colorImpl!(BashFormat.blink);
alias invert = colorImpl!(BashFormat.invert);
alias hidden = colorImpl!(BashFormat.hidden);
writeln("default_".default_);
writeln("yellow".yellow);
writeln("magenta".magenta);
writeln("lightgrey".lightgrey);
writeln("darkgrey".darkgrey);
writeln("lightred".lightred);
writeln("lightgreen".lightgreen);
writeln("lightyellow".lightyellow);
writeln("lightblue".lightblue);
writeln("lightmagenta".lightmagenta);
writeln("lightcyan".lightcyan);
writeln("yellow underlined".yellow.underlined);
writeln("red dim".red.dim);
writeln("green bright".green.bright);
writeln("blue blink".blue.blink);
writeln("magenta dim".magenta.dim);