fuck that dogshit

This commit is contained in:
2026-04-02 22:17:00 +03:00
parent 58d4b3d710
commit 58b7256a04
42 changed files with 591 additions and 327 deletions
+3 -3
View File
@@ -8,14 +8,14 @@ import input.IOManager
*/
class MinByNameCommand(
private val manager: CollectionManager,
private val console: IOManager
private val inputManager: IOManager
) : Command {
override val name = "min_by_name"
override val description = "вывести элемент с минимальным именем"
override fun execute(args: List<String>) {
val min = manager.minByName()
if (min == null) console.print("Коллекция пуста.")
else console.print(min.toString())
if (min == null) inputManager.print("Коллекция пуста.")
else inputManager.print(min.toString())
}
}