mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -15,12 +15,10 @@ module.exports = class CalendarCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'month',
|
||||
prompt: 'What month would you like to get the calendar of?',
|
||||
type: 'month'
|
||||
},
|
||||
{
|
||||
key: 'year',
|
||||
prompt: 'What year would you like to get the calendar of?',
|
||||
type: 'integer',
|
||||
min: 1
|
||||
}
|
||||
|
||||
@@ -12,19 +12,16 @@ module.exports = class DaysSinceCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'month',
|
||||
prompt: 'What month would you like to get the days since?',
|
||||
type: 'month'
|
||||
},
|
||||
{
|
||||
key: 'day',
|
||||
prompt: 'What day would you like to get the days since?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 31
|
||||
},
|
||||
{
|
||||
key: 'year',
|
||||
prompt: 'What year would you like to get the days since?',
|
||||
type: 'integer',
|
||||
min: 1
|
||||
}
|
||||
|
||||
@@ -13,19 +13,16 @@ module.exports = class DaysUntilCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'month',
|
||||
prompt: 'What month would you like to get the days until?',
|
||||
type: 'month'
|
||||
},
|
||||
{
|
||||
key: 'day',
|
||||
prompt: 'What day would you like to get the days until?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 31
|
||||
},
|
||||
{
|
||||
key: 'year',
|
||||
prompt: 'What year would you like to get the days until?',
|
||||
type: 'integer',
|
||||
min: new Date().getFullYear(),
|
||||
default: ''
|
||||
|
||||
@@ -21,13 +21,11 @@ module.exports = class GoogleDoodleCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'month',
|
||||
prompt: 'What month would you like to get doodles for?',
|
||||
type: 'month',
|
||||
default: 'latest'
|
||||
},
|
||||
{
|
||||
key: 'year',
|
||||
prompt: 'What year would you like to get doodles for?',
|
||||
type: 'integer',
|
||||
default: ''
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ module.exports = class HoroscopeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'sign',
|
||||
prompt: `Which sign would you like to get the horoscope for? Either ${list(signs, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: signs,
|
||||
parse: sign => sign.toLowerCase()
|
||||
|
||||
@@ -12,7 +12,6 @@ module.exports = class IsLeapCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'year',
|
||||
prompt: 'What year would you like to get data for?',
|
||||
type: 'integer',
|
||||
default: () => new Date().getFullYear(),
|
||||
min: 1
|
||||
|
||||
@@ -32,7 +32,6 @@ module.exports = class NekoAtsumePasswordCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'locale',
|
||||
prompt: `What locale do you want to use? Either ${list(locales, 'or')}.`,
|
||||
type: 'string',
|
||||
default: 'en',
|
||||
oneOf: locales,
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class TimeCommand extends Command {
|
||||
{
|
||||
key: 'timeZone',
|
||||
label: 'time zone',
|
||||
prompt: 'Which time zone do you want to get the time of?',
|
||||
type: 'timezone'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -23,13 +23,11 @@ module.exports = class TodayInHistoryCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'month',
|
||||
prompt: 'What month would you like to get an event for?',
|
||||
type: 'month',
|
||||
default: ''
|
||||
},
|
||||
{
|
||||
key: 'day',
|
||||
prompt: 'What day would you like to get an event for?',
|
||||
type: 'integer',
|
||||
default: '',
|
||||
min: 1,
|
||||
|
||||
Reference in New Issue
Block a user