add support for human readable /_cat endpoints: 'api repl -H'

This commit is contained in:
2026-07-10 11:11:49 +02:00
parent 45ba38bda9
commit 34669ac4de
3 changed files with 36 additions and 20 deletions

View File

@@ -91,6 +91,12 @@ func ApiRepl(conf *cfg.Config) *cli.Command {
Aliases: []string{"p"},
Sources: cli.EnvVars("PAGER", "ES_JSON_PAGER"),
},
&cli.BoolFlag{
Name: "human-readable-cat",
Usage: "enable human readable /_cat output",
Destination: &conf.HumanCat,
Aliases: []string{"H"},
},
},
Action: func(ctx context.Context, cmd *cli.Command) error {