mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 10:38:33 -04:00
Compare commits
4 Commits
e74fc4f35a
...
581967a58d
| Author | SHA1 | Date | |
|---|---|---|---|
| 581967a58d | |||
| 6ec09309dd | |||
| c5020bd6a6 | |||
| d5981d7b88 |
30
TODOS.md
30
TODOS.md
@@ -1,34 +1,32 @@
|
||||
# TODOs
|
||||
|
||||
1. Commands are still leaking. (Write tests for everything first)
|
||||
1. Bring back windows support / cross-compilation.
|
||||
|
||||
2. Add color flag and support non colored output.
|
||||
2. Commands are still leaking. (Write tests for everything first)
|
||||
|
||||
3. Rewrite `write_command_help` to use text/tables
|
||||
3. procedures should be ordered by use, main at the top, then in the order they are called from main.
|
||||
|
||||
4. Generate md and man pages again.
|
||||
4. Check for prealloc opportunities. i.e. `make([dynamic]string)` -> `make([dynamic]string, 5)`.
|
||||
|
||||
5. Check for prealloc opportunities. i.e. `make([dynamic]string)` -> `make([dynamic]string, 5)`.
|
||||
5. Test all cmds / terminal branches.
|
||||
|
||||
6. Add a text filter to the multi_select.
|
||||
6. Generate md and man pages again.
|
||||
|
||||
7. Add tests for untested commands.
|
||||
7. Shell completion
|
||||
|
||||
8. add --format -f flag to commands that draw tables.
|
||||
8. Add tests for untested commands.
|
||||
|
||||
9. procedures should be ordered by use, main at the top, then in the order they are called from main.
|
||||
9. Update `read_wire_string` to use a slice.
|
||||
|
||||
10. Shell completion
|
||||
10. Pass allocator to findr?
|
||||
|
||||
11. Bring back windows support / cross-compilation.
|
||||
11. Smarter flag parsing?
|
||||
|
||||
12. Test all cmds / terminal branches.
|
||||
12. Rewrite `write_command_help` to use text/tables
|
||||
|
||||
13. Pass allocator to findr?
|
||||
13. Add color flag and support non colored output.
|
||||
|
||||
14. Update `read_wire_string` to use a slice.
|
||||
|
||||
15. `-h` short flag seems to fail, at least with `envr list`
|
||||
14. Add a text filter to the multi_select.
|
||||
|
||||
## Double-check AI output
|
||||
|
||||
|
||||
2
cli.odin
2
cli.odin
@@ -123,7 +123,7 @@ parse_args :: proc(args: []string, out: io.Stream, err: io.Stream) -> (cmd: Comm
|
||||
cmd.config_path = default_config_path(home, context.temp_allocator)
|
||||
}
|
||||
|
||||
if has_flag(&cmd, "help") {
|
||||
if has_flag(&cmd, "help") || has_flag(&cmd, "h") {
|
||||
print_command_help(&cmd)
|
||||
return cmd, false
|
||||
}
|
||||
|
||||
2
db.odin
2
db.odin
@@ -172,7 +172,7 @@ db_close :: proc(db: ^Db) {
|
||||
}
|
||||
|
||||
sz: i64
|
||||
data := sqlite.serialize(db.conn, "main", &sz, 0)
|
||||
data := sqlite.serialize(db.conn, "main", &sz, {})
|
||||
if data == nil {
|
||||
fmt.eprintln("Error: failed to serialize database")
|
||||
return
|
||||
|
||||
@@ -196,7 +196,7 @@ test_db_serialize :: proc(t: ^testing.T) {
|
||||
db_insert(&db, f)
|
||||
|
||||
sz: i64
|
||||
data := sqlite.serialize(db.conn, "main", &sz, 0)
|
||||
data := sqlite.serialize(db.conn, "main", &sz, {})
|
||||
testing.expect(t, data != nil, "serialize should return non-nil")
|
||||
if data == nil do return
|
||||
defer sqlite.free(data)
|
||||
|
||||
Reference in New Issue
Block a user