Description
When --plain is used interactively, output is plain monochrome text. Add opt-in ANSI color support via AICT_COLOR=1 to make tools like aict ls --plain and aict grep --plain more usable at the terminal — without affecting XML/JSON output at all.
Color Conventions
| Entry type |
Color |
| Directories |
Bold blue |
| Executables |
Bold green |
| Symlinks |
Bold cyan |
| Binary files |
Red |
| grep matches |
Yellow highlight |
| Errors |
Bold red |
Rules
- Only activates when
AICT_COLOR=1 AND --plain is set
- Never affects
--xml or --json output
- Colors are stripped when stdout is not a TTY (pipe-safe)
AICT_COLOR=0 or NO_COLOR=1 explicitly disables
Affected Tools
ls, grep, find, diff, stat plain text modes
Related
internal/xml/encoder.go — add IsColorMode() helper similar to IsXMLMode()
Description
When
--plainis used interactively, output is plain monochrome text. Add opt-in ANSI color support viaAICT_COLOR=1to make tools likeaict ls --plainandaict grep --plainmore usable at the terminal — without affecting XML/JSON output at all.Color Conventions
Rules
AICT_COLOR=1AND--plainis set--xmlor--jsonoutputAICT_COLOR=0orNO_COLOR=1explicitly disablesAffected Tools
ls,grep,find,diff,statplain text modesRelated
internal/xml/encoder.go— addIsColorMode()helper similar toIsXMLMode()