mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 10:38:33 -04:00
chore: Made some code more windows friendly.
This commit is contained in:
1
TODOS.md
1
TODOS.md
@@ -50,6 +50,7 @@
|
||||
|
||||
- [ ] cli.odin
|
||||
- [ ] cli_test.odin
|
||||
- [x] colors.odin
|
||||
- [x] cmd_backup.odin
|
||||
- [x] cmd_check.odin
|
||||
- [ ] cmd_check_test.odin
|
||||
|
||||
@@ -31,7 +31,10 @@ cmd_list :: proc(cmd: ^Command) {
|
||||
table_rows := make([dynamic][]string, 0, len(rows), context.temp_allocator)
|
||||
|
||||
for row in rows {
|
||||
dir_str := strings.concatenate({row.Dir, "/"}, context.temp_allocator)
|
||||
dir_str := strings.concatenate(
|
||||
{row.Dir, os.Path_Separator_String},
|
||||
context.temp_allocator,
|
||||
)
|
||||
filename := filepath.base(row.Path)
|
||||
row_slice := make([]string, 2, context.temp_allocator)
|
||||
row_slice[0] = dir_str
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
package main
|
||||
|
||||
import "core:fmt"
|
||||
import "core:os"
|
||||
import "core:testing"
|
||||
|
||||
CRYPTO_TEST_KEY_DIR :: "fixtures/keys"
|
||||
CRYPTO_TEST_KEY_DIR :: "fixtures" + os.Path_Separator_String + "keys"
|
||||
|
||||
make_test_key_pair :: proc(name: string) -> SshKeyPair {
|
||||
priv := fmt.tprintf("%s/%s", CRYPTO_TEST_KEY_DIR, name)
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
package main
|
||||
|
||||
import "core:fmt"
|
||||
import "core:os"
|
||||
import "core:testing"
|
||||
|
||||
TEST_KEY_DIR :: "fixtures/keys"
|
||||
TEST_KEY_DIR :: "fixtures" + os.Path_Separator_String + "keys"
|
||||
|
||||
@(test)
|
||||
test_parse_ed25519_public_key :: proc(t: ^testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user