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 (#69191) (#69213)

* Allowing create option to be passed through the cli

* Using kebab casing

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
jonathan-buttner and elasticmachine authored Jun 16, 2020
1 parent ab21b78 commit da33681
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 da33681

Please sign in to comment.