add support for human readable /_cat endpoints: 'api repl -H' (#87)

This commit is contained in:
T. von Dein
2026-07-10 11:21:45 +02:00
parent 53abe666e8
commit 9a42b86d62
4 changed files with 38 additions and 22 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 {