uh oh first commit

This commit is contained in:
2026-03-07 10:31:30 +03:00
commit adf21aad25
64 changed files with 2049 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package commands
import collection.CollectionManager
import file.FileManager
/**
* Сохраняет коллекцию в CSV-файл.
* @property manager менеджер коллекции
* @property fileManager менеджер файла
*/
class SaveCommand(
private val manager: CollectionManager,
private val fileManager: FileManager
) : Command {
override val name = "save"
override val description = "сохранить коллекцию в файл"
override fun execute(args: List<String>) {
fileManager.write(manager.getAll())
}
}