mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 08:08:34 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -21,19 +21,16 @@ module.exports = class CurrencyCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'amount',
|
||||
prompt: 'How much currency should be converted? Do not use symbols.',
|
||||
type: 'float'
|
||||
},
|
||||
{
|
||||
key: 'base',
|
||||
prompt: 'What currency code (e.g. USD) do you want to use as the base?',
|
||||
type: 'string',
|
||||
min: 3,
|
||||
max: 3
|
||||
},
|
||||
{
|
||||
key: 'target',
|
||||
prompt: 'What currency code (e.g. USD) do you want to convert to?',
|
||||
type: 'string',
|
||||
min: 3,
|
||||
max: 3
|
||||
|
||||
@@ -20,20 +20,17 @@ module.exports = class FinalGradeCommand extends Command {
|
||||
{
|
||||
key: 'current',
|
||||
label: 'current grade',
|
||||
prompt: 'What is your current grade in the class?',
|
||||
type: 'integer',
|
||||
min: 0
|
||||
},
|
||||
{
|
||||
key: 'desired',
|
||||
label: 'desired grade',
|
||||
prompt: 'What is the minimum grade you want in the class?',
|
||||
type: 'integer',
|
||||
min: 0
|
||||
},
|
||||
{
|
||||
key: 'weight',
|
||||
prompt: 'What percentage of your grade is the final worth?',
|
||||
type: 'integer',
|
||||
max: 100,
|
||||
min: 0
|
||||
|
||||
@@ -12,7 +12,6 @@ module.exports = class FormatNumberCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'number',
|
||||
prompt: 'What number do you want to format?',
|
||||
type: 'float'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = class GcdCommand extends Command {
|
||||
{
|
||||
key: 'number1',
|
||||
label: 'first number',
|
||||
prompt: 'What is the first number you want to check?',
|
||||
type: 'integer',
|
||||
max: Number.MAX_SAFE_INTEGER,
|
||||
min: 1
|
||||
@@ -21,7 +20,6 @@ module.exports = class GcdCommand extends Command {
|
||||
{
|
||||
key: 'number2',
|
||||
label: 'second number',
|
||||
prompt: 'What is the second number you want to check?',
|
||||
type: 'integer',
|
||||
max: Number.MAX_SAFE_INTEGER,
|
||||
min: 1
|
||||
|
||||
@@ -12,14 +12,12 @@ module.exports = class GradeCommand extends Command {
|
||||
{
|
||||
key: 'earned',
|
||||
label: 'points earned',
|
||||
prompt: 'How many points did you get?',
|
||||
type: 'integer',
|
||||
min: 0
|
||||
},
|
||||
{
|
||||
key: 'total',
|
||||
label: 'total points',
|
||||
prompt: 'How many points are available to recieve?',
|
||||
type: 'integer',
|
||||
min: 0
|
||||
}
|
||||
|
||||
@@ -21,13 +21,11 @@ module.exports = class GravityCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'weight',
|
||||
prompt: 'What should the starting weight be (in KG)?',
|
||||
type: 'float'
|
||||
},
|
||||
{
|
||||
key: 'planet',
|
||||
label: 'celestial object',
|
||||
prompt: `What celestial object do you want to use? Either ${list(Object.keys(planets), 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: Object.keys(planets),
|
||||
parse: planet => planet.toLowerCase()
|
||||
|
||||
@@ -22,7 +22,6 @@ module.exports = class MathCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'expression',
|
||||
prompt: 'What expression do you want to evaluate?',
|
||||
type: 'string'
|
||||
}
|
||||
],
|
||||
|
||||
@@ -12,7 +12,6 @@ module.exports = class PrimeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'number',
|
||||
prompt: 'What number do you want to check?',
|
||||
type: 'integer',
|
||||
max: Number.MAX_SAFE_INTEGER
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ module.exports = class RomanCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'number',
|
||||
prompt: 'What number would you like to convert to roman numerals?',
|
||||
type: 'integer',
|
||||
min: -3999999,
|
||||
max: 3999999
|
||||
|
||||
@@ -11,7 +11,6 @@ module.exports = class ScientificNotationCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'number',
|
||||
prompt: 'What number do you want to convert to scientific notation?',
|
||||
type: 'float'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -11,14 +11,12 @@ module.exports = class TaxCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'rate',
|
||||
prompt: 'What is the tax rate (in %)?',
|
||||
type: 'integer',
|
||||
max: 100,
|
||||
min: 0
|
||||
},
|
||||
{
|
||||
key: 'amount',
|
||||
prompt: 'How much money should be converted?',
|
||||
type: 'float'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -26,18 +26,15 @@ module.exports = class UnitsCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'amount',
|
||||
prompt: 'How many units should be converted?',
|
||||
type: 'float'
|
||||
},
|
||||
{
|
||||
key: 'base',
|
||||
prompt: 'What unit type do you want to convert from?',
|
||||
type: 'string',
|
||||
parse: base => base.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'target',
|
||||
prompt: 'What unit type do you want to convert to?',
|
||||
type: 'string',
|
||||
parse: target => target.toLowerCase()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user