chore(command): remove unused args in execute()
This commit is contained in:
@@ -4,5 +4,5 @@ interface Command {
|
|||||||
val name: String
|
val name: String
|
||||||
val description: String
|
val description: String
|
||||||
|
|
||||||
fun execute(args: String? = null)
|
fun execute()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class Add(
|
|||||||
override val name = "add"
|
override val name = "add"
|
||||||
override val description = "add product"
|
override val description = "add product"
|
||||||
|
|
||||||
override fun execute(args: String?) {
|
override fun execute() {
|
||||||
io.println("добавляем продукт")
|
io.println("добавляем продукт")
|
||||||
manager.addProduct(ProductReader(io).read())
|
manager.addProduct(ProductReader(io).read())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class Exit(
|
|||||||
override val name = "exit"
|
override val name = "exit"
|
||||||
override val description = "stop app execution"
|
override val description = "stop app execution"
|
||||||
|
|
||||||
override fun execute(args: String?) {
|
override fun execute() {
|
||||||
io.println("завершение процесса")
|
io.println("завершение процесса")
|
||||||
stop()
|
stop()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user