chore(command): remove unused args in execute()

This commit is contained in:
2026-03-02 14:41:31 +03:00
parent f6384672a5
commit c57e52e621
3 changed files with 3 additions and 3 deletions

View File

@@ -4,5 +4,5 @@ interface Command {
val name: String
val description: String
fun execute(args: String? = null)
fun execute()
}

View File

@@ -12,7 +12,7 @@ class Add(
override val name = "add"
override val description = "add product"
override fun execute(args: String?) {
override fun execute() {
io.println("добавляем продукт")
manager.addProduct(ProductReader(io).read())
}

View File

@@ -11,7 +11,7 @@ class Exit(
override val name = "exit"
override val description = "stop app execution"
override fun execute(args: String?) {
override fun execute() {
io.println("завершение процесса")
stop()
}