[Endpoint] [ES Archiver] Allowing create option to be passed through the cli for es archiver (#69191)

* Allowing create option to be passed through the cli

* Using kebab casing
This commit is contained in:
Jonathan Buttner 2020-06-15 18:04:33 -04:00 committed by GitHub
parent 4f5e279d75
commit 646a212b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>')