miller/pkg/terminals
John Kerl 3a0abd3378 Add named profile sections to .mlrrc, selected via --profile / -P (#358)
.mlrrc files may now contain INI-style named sections ("profiles"):

  # Global settings, applied always:
  icsv

  [j]
  ojson
  jvstack

  [tsvout]
  otsv

Lines before any section header are global settings, applied always, so
existing .mlrrc files behave exactly as before. The new main flag
--profile {name} (alias -P {name}) applies the settings from the [name]
section after the global settings; without it, sections are ignored
entirely (their lines aren't even parsed).

It's a fatal error if a requested profile has no matching section in any
.mlrrc file processed, if no .mlrrc file was found at all, or if
--profile is combined with --norc or MLRRC=__none__.

Also fixes the regression-tester to restore per-case environment
variables to their prior values after each case, rather than setting
them to the empty string -- needed so cases pointing MLRRC at a test
file don't clobber the suite-wide MLRRC=__none__ guard.

Includes unit tests, regression-test cases, and doc/man-page updates.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 10:23:44 -04:00
..
completion Shell tab-completion for bash and zsh (#2096) 2026-06-21 12:47:54 -04:00
help Add mlr mcp MCP server + agent playbook, with a --no-shell gate (#2098 PR7) (#2133) 2026-07-03 19:41:49 -04:00
mcp More AI skill/MCP docs (#2140) 2026-07-04 14:45:29 -04:00
registry More AI skill/MCP docs (#2140) 2026-07-04 14:45:29 -04:00
regtest Add named profile sections to .mlrrc, selected via --profile / -P (#358) 2026-07-14 10:23:44 -04:00
repl Lint round 5+6: staticcheck and errcheck to zero (#2130) 2026-07-03 11:42:08 -04:00
script Lint round 5+6: staticcheck and errcheck to zero (#2130) 2026-07-03 11:42:08 -04:00
skill More AI skill/MCP docs (#2140) 2026-07-04 14:45:29 -04:00
doc.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
terminals.go More AI skill/MCP docs (#2140) 2026-07-04 14:45:29 -04:00