refactor: Fixed cli command.

This commit is contained in:
2026-06-14 21:59:23 -04:00
parent 567cc8b1e2
commit 3db86f0d2e
2 changed files with 12 additions and 7 deletions

View File

@@ -17,18 +17,22 @@ cmd_backup :: proc(cmd: ^Command) {
file, ok := new_env_file(path)
if !ok {
// TODO: log a message
return
}
db, db_ok := db_open()
if !db_ok {
// TODO: log a message
return
}
defer db_close(&db)
if !db_insert(&db, file) {
// TODO: log a message
return
}
fmt.printf("Saved %s into the database\n", path)
}