diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-16 20:20:19 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-16 20:20:19 -0500 |
commit | d110fe9c7624f91dd12a3a3f3d6cf6e230c2e62c (patch) | |
tree | 98d637a772e5274dcde8478c3cfb9ff2ce6a4daa /src/commands/dev | |
parent | ecfdc42b6efb958ddfd473f85a84728f34c8f663 (diff) | |
download | tanzanite-d110fe9c7624f91dd12a3a3f3d6cf6e230c2e62c.tar.gz tanzanite-d110fe9c7624f91dd12a3a3f3d6cf6e230c2e62c.tar.bz2 tanzanite-d110fe9c7624f91dd12a3a3f3d6cf6e230c2e62c.zip |
add no_inspect_strings flag to eval command
Diffstat (limited to 'src/commands/dev')
-rw-r--r-- | src/commands/dev/eval.ts | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 4eb25dc..656eeff 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -142,6 +142,15 @@ export default class EvalCommand extends BushCommand { prompt: 'Would you like to wrap the code in an async function?', slashType: 'BOOLEAN', optional: true + }, + { + id: 'no_inspect_strings', + description: 'Whether to not inspect strings.', + match: 'flag', + flag: ['--strings', '--string'], + prompt: 'Would you like to not inspect strings?', + slashType: 'BOOLEAN', + optional: true } ], slash: true, @@ -164,6 +173,7 @@ export default class EvalCommand extends BushCommand { show_proto: ArgType<'boolean'>; show_methods: ArgType<'boolean'>; async: ArgType<'boolean'>; + no_inspect_strings: ArgType<'boolean'>; } ) { if (!message.author.isOwner()) @@ -207,7 +217,8 @@ export default class EvalCommand extends BushCommand { depth: args.sel_depth ?? 0, showHidden: args.hidden, getters: true, - showProxy: true + showProxy: true, + inspectStrings: !args.no_inspect_strings }); const methods = args.show_methods ? await util.inspectCleanRedactCodeblock(util.getMethods(rawOutput), 'js') : undefined; const proto = args.show_proto |