Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 15, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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('--useCreate', '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