0695035b0f43
fix: Surface successful self-update completion (v3.1.9)
- time
- 2026-06-11 18:18 UTC · 4 months ago
- machine
- koh2
- parent
- 669fea798465
↓ nina-0695035b.tar.gzatlas at this save
files changed5 files
README.md+8 −0VERSION+1 −1build.zig.zon+1 −1src/commands.zig+8 −4src/output.zig+5 −2README.md+8 −0
@@ -63,6 +63,14 @@6363 nina try <p> run a package without installing it6464 nina list show installed packages6565 66+nina home apply apply home-manager config67+nina home back roll back one home-manager generation68+nina home history list home-manager generations69+nina home edit open home.nix70+nina home check validate home config without switching71+nina home diff compare the latest two home generations72+nina home packages list packages managed by home-manager73+6674 nina status machine health at a glance6775 nina status --all health across every configured machine6876 nina doctor diagnose common issuesbuild.zig.zon+1 −1
@@ -9,7 +9,7 @@99 .name = .nina,1010 // This is a [Semantic Version](https://semver.org/).1111 // In a future version of Zig it will be used for package deduplication.12- .version = "3.1.6",12+ .version = "3.1.9",1313 // Together with name, this represents a globally unique package1414 // identifier. This field is generated by the Zig toolchain when the1515 // package is first created, and then *never changes*. This allowssrc/commands.zig+8 −4
@@ -382,7 +382,11 @@382382 output.updateSelfNixFailed();383383 return;384384 };385- if (ec != 0) output.updateSelfNixFailed();385+ if (ec != 0) {386+ output.updateSelfNixFailed();387+ return;388+ }389+ output.updateSelfDone(version.VERSION, remote_ver);386390 return;387391 }388392 @@ -940,13 +944,13 @@940944 // --- Home Manager commands ---941945 942946 const home_help = [_][2][]const u8{943- .{ "apply", "apply home manager configuration" },944- .{ "apply --dry", "preview changes" },947+ .{ "apply", "apply home-manager configuration" },948+ .{ "apply --dry", "preview changes without activating" },945949 .{ "back", "roll back one generation" },946950 .{ "history", "list all generations" },947951 .{ "edit", "open home.nix" },948952 .{ "check", "validate without applying" },949- .{ "diff", "changes between generations" },953+ .{ "diff", "compare the latest two generations" },950954 .{ "packages", "list managed packages" },951955 };952956 src/output.zig+5 −2
@@ -647,6 +647,9 @@647647 .{ "home apply", "apply home config" },648648 .{ "home back", "roll back home config" },649649 .{ "home history", "list home generations" },650+ .{ "home check", "validate home config" },651+ .{ "home diff", "compare home generations" },652+ .{ "home packages", "list managed packages" },650653 };651654 for (quick) |cmd| {652655 p(" {s:<16} {s}{s}{s}\n", .{ cmd[0], c(DIM), cmd[1], c(RESET) });@@ -686,7 +689,7 @@686689 .{ "store", "nix store tools" },687690 .{ "channel", "manage channels" },688691 .{ "profile", "user profile packages" },689- .{ "home", "home manager subcommands" },692+ .{ "home", "home manager commands (apply/back/history/edit/check/diff/packages)" },690693 .{ "info", "system information" },691694 .{ "boot", "boot entries" },692695 .{ "fmt", "format configuration.nix" },@@ -704,7 +707,7 @@704707 for (cmds) |cmd| {705708 p(" {s:<18} {s}{s}{s}\n", .{ cmd[0], c(DIM), cmd[1], c(RESET) });706709 }707- p("\n {s}flags: --on <machine> --dry --check --no-apply --last <n> --all --json{s}\n", .{ c(DIM), c(RESET) });710+ p("\n {s}flags: --on <machine> --dry --check --no-apply --last <n> --all --json --version{s}\n", .{ c(DIM), c(RESET) });708711 }709712 710713 // Render a grouped command's subcommand list, shown when the group is invoked