Skip to content

Commit 773c3e1

Browse files
legacy utils cleanup (#76608) (#77074)
* move prompt to cli_keystore * move binder to cli * remove unused path_contains Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 1f73e02 commit 773c3e1

File tree

12 files changed

+5
-31
lines changed

12 files changed

+5
-31
lines changed
File renamed without changes.
File renamed without changes.

src/cli/cluster/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import _ from 'lodash';
2121
import cluster from 'cluster';
2222
import { EventEmitter } from 'events';
2323

24-
import { BinderFor } from '../../legacy/utils/binder_for';
24+
import { BinderFor } from './binder_for';
2525
import { fromRoot } from '../../core/server/utils';
2626

2727
const cliPath = fromRoot('src/cli');

src/cli_keystore/add.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { Logger } from '../cli_plugin/lib/logger';
21-
import { confirm, question } from '../legacy/server/utils';
21+
import { confirm, question } from './utils';
2222
import { createPromiseFromStreams, createConcatStream } from '../core/server/utils';
2323

2424
/**

src/cli_keystore/add.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { PassThrough } from 'stream';
4242
import { Keystore } from '../legacy/server/keystore';
4343
import { add } from './add';
4444
import { Logger } from '../cli_plugin/lib/logger';
45-
import * as prompt from '../legacy/server/utils/prompt';
45+
import * as prompt from './utils/prompt';
4646

4747
describe('Kibana keystore', () => {
4848
describe('add', () => {

src/cli_keystore/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { Logger } from '../cli_plugin/lib/logger';
21-
import { confirm } from '../legacy/server/utils';
21+
import { confirm } from './utils';
2222

2323
export async function create(keystore, command, options) {
2424
const logger = new Logger(options);

src/cli_keystore/create.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import sinon from 'sinon';
4141
import { Keystore } from '../legacy/server/keystore';
4242
import { create } from './create';
4343
import { Logger } from '../cli_plugin/lib/logger';
44-
import * as prompt from '../legacy/server/utils/prompt';
44+
import * as prompt from './utils/prompt';
4545

4646
describe('Kibana keystore', () => {
4747
describe('create', () => {
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)