add datastream support, refactor custom completion (#32)

This commit is contained in:
T. von Dein
2026-06-10 15:43:14 +02:00
parent 925b21823a
commit ec1ce56b2d
11 changed files with 445 additions and 63 deletions

View File

@@ -134,7 +134,7 @@ func IndexShow(conf *cfg.Config) *cli.Command {
},
ShellComplete: func(ctx context.Context, cmd *cli.Command) {
completeIndex(cmd)
complete(cmd, Cindex)
},
}
}
@@ -189,7 +189,7 @@ func IndexDelete(conf *cfg.Config) *cli.Command {
UsageText: "delete <index>",
ShellComplete: func(ctx context.Context, cmd *cli.Command) {
completeIndex(cmd)
complete(cmd, Cindex)
},
Action: func(ctx context.Context, cmd *cli.Command) error {
@@ -210,7 +210,7 @@ func IndexClose(conf *cfg.Config) *cli.Command {
UsageText: "close <index>",
ShellComplete: func(ctx context.Context, cmd *cli.Command) {
completeIndex(cmd)
complete(cmd, Cindex)
},
Action: func(ctx context.Context, cmd *cli.Command) error {
@@ -231,7 +231,7 @@ func IndexModify(conf *cfg.Config) *cli.Command {
UsageText: "modify <index[,index,...]|_all>",
ShellComplete: func(ctx context.Context, cmd *cli.Command) {
completeIndex(cmd)
complete(cmd, Cindex)
},
Flags: []cli.Flag{
@@ -282,7 +282,7 @@ func IndexFields(conf *cfg.Config) *cli.Command {
},
ShellComplete: func(ctx context.Context, cmd *cli.Command) {
completeIndex(cmd)
complete(cmd, Cindex)
},
Action: func(ctx context.Context, cmd *cli.Command) error {