navid/veins / commit

dddd4de96503

Navid M <navidmomtahen@gmail.com> · 2026-11-25

parents: cceb34b50083

Browse files at this commit · Download source

all: rename selftest command to self-test
--- a/docs/test-vectors/M0.adoc+++ b/docs/test-vectors/M0.adoc@@ -6,7 +6,7 @@ BLAKE3, canonical varints, FastCDC chunk boundaries, object IDs and bodies, and the pack/index container. They were generated with an independent Python implementation using the reference `blake3` package and are checked by-`vn selftest`.+`vn self-test`.  Object IDs use the domain separator from the specification: @@ -189,7 +189,7 @@ === Operation  No parents; view above; start = end = 1700000000000 +0000; hostname `host`,-username `alice`, description `selftest operation`; no tags.+username `alice`, description `self-test operation`; no tags.  [source,text] ----@@ -250,6 +250,6 @@  == Verification -`vn selftest` checks every vector in this document, including the exact pack+`vn self-test` checks every vector in this document, including the exact pack bytes and the index checksum, and then runs `vn fsck` on a repository constructed from the vectors.--- a/src/src/cli/selftest_cmd.sx+++ b/src/src/cli/selftest_cmd.sx@@ -533,7 +533,7 @@             repo = r         }         err e => {-            stdio.eprint("selftest: cannot create repo ({d})\n", {e})+            stdio.eprint("self-test: cannot create repo ({d})\n", {e})             @free(path as ref void)             return 1         }@@ -543,9 +543,9 @@     layout.free_repo(repo)     @free(path as ref void)     if status != 0 {-        stdio.eprint("selftest: fsck failed\n", {})+        stdio.eprint("self-test: fsck failed\n", {})         return 1     }-    stdio.puts("selftest: OK")+    stdio.puts("self-test: OK")     return 0 }--- a/src/src/main.sx+++ b/src/src/main.sx@@ -20,7 +20,7 @@     stdio.puts("commands:")     stdio.puts("  init [path]          create a repository")     stdio.puts("  fsck [path] [-v]     verify pack, index, object, and op-log integrity")-    stdio.puts("  selftest             run the M0 format self-tests")+    stdio.puts("  self-test            run the M0 format self-tests")     stdio.puts("  version              print version information") } @@ -75,7 +75,7 @@     if cmd_is(cmd, c"fsck", 4) {         return run_fsck(args, 2)     }-    if cmd_is(cmd, c"selftest", 8) {+    if cmd_is(cmd, c"self-test", 9) {         return selftest_cmd.run()     }     if cmd_is(cmd, c"version", 7) || cmd_is(cmd, c"--version", 9) {