aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commands/dev/javascript.ts12
-rw-r--r--src/commands/utilities/wolframAlpha.ts13
2 files changed, 23 insertions, 2 deletions
diff --git a/src/commands/dev/javascript.ts b/src/commands/dev/javascript.ts
index 5173cd1..d832c09 100644
--- a/src/commands/dev/javascript.ts
+++ b/src/commands/dev/javascript.ts
@@ -12,6 +12,15 @@ export default class JavascriptCommand extends BushCommand {
examples: ['javascript 9+10'],
args: [
{
+ id: 'code',
+ description: 'The code you would like to run in a sand boxed environment.',
+ match: 'rest',
+ prompt: 'What code would you like to run in a sand boxed environment?',
+ retry: '{error} Invalid code to run in a sand boxed environment.',
+ slashType: 'STRING',
+ only: 'slash'
+ },
+ {
id: 'sel_depth',
description: 'How deep to inspect the output.',
match: 'option',
@@ -28,7 +37,8 @@ export default class JavascriptCommand extends BushCommand {
match: 'rest',
prompt: 'What code would you like to run in a sand boxed environment?',
retry: '{error} Invalid code to run in a sand boxed environment.',
- slashType: 'STRING'
+ slashType: 'STRING',
+ only: 'text'
}
],
slash: true,
diff --git a/src/commands/utilities/wolframAlpha.ts b/src/commands/utilities/wolframAlpha.ts
index 34b2b90..216beaf 100644
--- a/src/commands/utilities/wolframAlpha.ts
+++ b/src/commands/utilities/wolframAlpha.ts
@@ -12,6 +12,16 @@ export default class WolframAlphaCommand extends BushCommand {
examples: ['wolfram-alpha what is the population of france'],
args: [
{
+ id: 'expression',
+ description: 'The expression to query the Wolfram|Alpha api for.',
+ type: 'string',
+ match: 'rest',
+ prompt: 'What would you like to look up?',
+ retry: '{error} Pick something to look up.',
+ slashType: 'STRING',
+ only:'slash'
+ },
+ {
id: 'image',
description: 'Whether to use the Simple API instead of the Short Answers API.',
match: 'flag',
@@ -27,7 +37,8 @@ export default class WolframAlphaCommand extends BushCommand {
match: 'rest',
prompt: 'What would you like to look up?',
retry: '{error} Pick something to look up.',
- slashType: 'STRING'
+ slashType: 'STRING',
+ only: 'text'
}
],
slash: true,