diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-11 19:28:20 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-11 19:28:20 -0400 |
commit | eaf592b72eb5b1d66aa2bde5151a8947570a506c (patch) | |
tree | 4d956b1fc049480cc68db1f67972b4eb24c8c23d /src/commands/dev | |
parent | 4c6e3585a623e25ef2489032b84eb4c9a998dc9d (diff) | |
download | tanzanite-eaf592b72eb5b1d66aa2bde5151a8947570a506c.tar.gz tanzanite-eaf592b72eb5b1d66aa2bde5151a8947570a506c.tar.bz2 tanzanite-eaf592b72eb5b1d66aa2bde5151a8947570a506c.zip |
remove excessive ansi formatting
Diffstat (limited to 'src/commands/dev')
-rw-r--r-- | src/commands/dev/eval.ts | 4 | ||||
-rw-r--r-- | src/commands/dev/javascript.ts | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index d4c9331..8af280d 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -263,12 +263,12 @@ export default class EvalCommand extends BushCommand { if (inputTS) embed.addFields([{ name: ':inbox_tray: Input (typescript)', value: inputTS }]); embed.addFields([{ name: `:inbox_tray: Input${inputTS ? ' (transpiled javascript)' : ''}`, value: inputJS }]); - const output = await this.codeblock(rawResult, 'ansi', { + const output = await this.codeblock(rawResult, 'js', { depth: selDepth ?? 0, showHidden: hidden, showProxy: true, inspectStrings: !noInspectStrings, - colors: true + colors: false }); const methods = !err && showMethods ? await this.codeblock(rawResult, 'ts', { methods: true }) : undefined; diff --git a/src/commands/dev/javascript.ts b/src/commands/dev/javascript.ts index 373f149..be8fdce 100644 --- a/src/commands/dev/javascript.ts +++ b/src/commands/dev/javascript.ts @@ -60,11 +60,11 @@ export default class JavascriptCommand extends BushCommand { const rawOutput = /^(9\s*?\+\s*?10)|(10\s*?\+\s*?9)$/.test(code) ? '21' : new VM({ eval: true, wasm: true, timeout: 1_000, fixAsync: true }).run(`${code}`); - const output = await util.inspectCleanRedactCodeblock(rawOutput, 'ansi', { + const output = await util.inspectCleanRedactCodeblock(rawOutput, 'js', { depth: args.sel_depth ?? 0, getters: true, inspectStrings: true, - colors: true + colors: false }); embed.setTitle(`${util.emojis.successFull} Successfully Evaluated Expression`).setColor(util.colors.success); @@ -76,7 +76,7 @@ export default class JavascriptCommand extends BushCommand { embed.setTitle(`${util.emojis.errorFull} Unable to Evaluate Expression`).setColor(util.colors.error); embed.addFields([ { name: '📥 Input', value: input }, - { name: '📤 Error', value: await util.inspectCleanRedactCodeblock(e, 'ansi', { colors: true }) } + { name: '📤 Error', value: await util.inspectCleanRedactCodeblock(e, 'js', { colors: false }) } ]); } |