fix: improve package management and screen status

- Fix issues in package installation and removal across
different platforms (Ubuntu, macOS, Alpine, Arch).
- Improve error handling and add sudo support where
necessary.
- Enhance screen status check to accurately reflect
process activity.
- Address minor bugs in `db.v`, `done.v`, and
`net_test.v`.
- Correct minor inconsistencies in package names.
This commit is contained in:
Mahmoud Emad
2024-12-25 17:12:08 +02:00
parent 259e0db19f
commit ccfc7c4656
7 changed files with 138 additions and 72 deletions

View File

@@ -248,8 +248,11 @@ pub fn (mut db DB) destroy() ! {
// get all keys of the db (e.g. per session) can be with a prefix
pub fn (mut db DB) keys(prefix_ string) ![]string {
// TODO: see get, to fix this one
mut files := db.path.list()!
if prefix_.len == 0 {
return []
}
mut files := db.path.list()!
panic('implement ${files}')
prefix := texttools.name_fix(prefix_)
mut r := db.path.list(recursive: false)!