Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 5ecf90a

Browse files
committed
fix(packages/core): remove leftover console.trace
also cleans up lint member accessiblity violations Fixes #3003
1 parent a2c3ab1 commit 5ecf90a

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

packages/core/src/core/repl.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
*
2020
*/
2121

22-
console.trace()
23-
/* eslint-disable @typescript-eslint/explicit-member-accessibility */
24-
2522
import Debug from 'debug'
2623
const debug = Debug('core/repl')
2724
debug('loading')
@@ -90,9 +87,9 @@ export interface ReplEval {
9087
*
9188
*/
9289
export class DirectReplEval implements ReplEval {
93-
name = 'DirectReplEval'
90+
public name = 'DirectReplEval'
9491

95-
apply(commandUntrimmed: string, execOptions: ExecOptions, evaluator: Evaluator, args: EvaluatorArgs) {
92+
public apply(commandUntrimmed: string, execOptions: ExecOptions, evaluator: Evaluator, args: EvaluatorArgs) {
9693
return evaluator.eval(args)
9794
}
9895
}
@@ -278,9 +275,9 @@ const emptyExecOptions = (): ExecOptions => new DefaultExecOptions()
278275
*
279276
*/
280277
class InProcessExecutor implements Executor {
281-
name = 'InProcessExecutor'
278+
public name = 'InProcessExecutor'
282279

283-
async exec(commandUntrimmed: string, execOptions = emptyExecOptions()) {
280+
public async exec(commandUntrimmed: string, execOptions = emptyExecOptions()) {
284281
const tab = execOptions.tab || cli.getCurrentTab()
285282
const REPL = getImpl(tab) // eslint-disable-line @typescript-eslint/no-use-before-define
286283

plugins/plugin-manager/src/test/manager/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Common.localDescribe('plugin manager', function(this: Common.ISuite) {
3131
.then(reload)
3232
.catch(Common.oops(this, true)))
3333

34-
it('should try "sample hi" and fail', () =>
34+
it('should try "hi" and fail', () =>
3535
CLI.command('hi', this.app)
3636
.then(ReplExpect.error(404))
3737
.catch(Common.oops(this, true)))
@@ -61,7 +61,7 @@ Common.localDescribe('plugin manager', function(this: Common.ISuite) {
6161
CLI.command('plugin commands @kui-shell/plugin-sample', this.app)
6262
.then(ReplExpect.okWithCustom({ expect: 'hello', passthrough: true }))
6363
.then(async N => {
64-
await this.app.client.click(`${Selectors.OUTPUT_N(N)} .entity[data-name="sample hello"] .clickable`)
64+
await this.app.client.click(`${Selectors.OUTPUT_N(N)} .entity[data-name="hello"] .clickable`)
6565
await this.app.client.waitForExist(Selectors.OUTPUT_N(N + 1))
6666
await this.app.client.waitForText(Selectors.OUTPUT_N(N + 1))
6767
return this.app.client.getText(Selectors.OUTPUT_N(N + 1))

0 commit comments

Comments
 (0)