mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -13,7 +13,6 @@ module.exports = class BeautifyCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'code',
|
||||
prompt: 'What code do you want to beautify?',
|
||||
type: 'code'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -25,13 +25,11 @@ module.exports = class GithubCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'author',
|
||||
prompt: 'Who is the author of the repository?',
|
||||
type: 'string',
|
||||
parse: author => encodeURIComponent(author)
|
||||
},
|
||||
{
|
||||
key: 'repository',
|
||||
prompt: 'What is the name of the repository?',
|
||||
type: 'string',
|
||||
parse: repository => encodeURIComponent(repository)
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ module.exports = class LintRuleCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'rule',
|
||||
prompt: 'Which rule would you like to get information on?',
|
||||
type: 'string',
|
||||
parse: rule => rule.toLowerCase().replaceAll(' ', '-')
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ module.exports = class LintCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'code',
|
||||
prompt: 'What code do you want to lint?',
|
||||
type: 'code'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -23,7 +23,6 @@ module.exports = class NPMCommand extends Command {
|
||||
{
|
||||
key: 'pkg',
|
||||
label: 'package',
|
||||
prompt: 'What package would you like to get information on?',
|
||||
type: 'string',
|
||||
parse: pkg => encodeURIComponent(pkg.replaceAll(' ', '-'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user