Skip to content

Commit

Permalink
[Endpoint] [ES Archiver] Allowing create option to be passed through …
Browse files Browse the repository at this point in the history
…the cli for es archiver (elastic#69191)

* Allowing create option to be passed through the cli

* Using kebab casing
  • Loading branch information
jonathan-buttner committed Jun 15, 2020
1 parent 86aa4f2 commit 78e6227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/es_archiver/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ cmd
.action((name, indices) => execute((archiver, { raw }) => archiver.save(name, indices, { raw })));

cmd
.option('--use-create', 'use create instead of index for loading documents')
.command('load <name>')
.description('load the archive in --dir with <name>')
.action((name) => execute((archiver) => archiver.load(name)));
.action((name) => execute((archiver, { useCreate }) => archiver.load(name, { useCreate })));

cmd
.command('unload <name>')
Expand Down

0 comments on commit 78e6227

Please sign in to comment.