+4
-4
modules/deploy.fish
+4
-4
modules/deploy.fish
···
1
1
#!/usr/bin/env fish
2
-
argparse -n deploy -X 1 'c/command=' 'f/flake=' r/remote -- $argv
2
+
argparse -n deploy -X 1 c/command= r/remote -- $argv
3
3
or return
4
4
5
5
if test -e ./flake.nix
···
13
13
test -d "$flake"
14
14
and type -q jj
15
15
and test (realpath "$flake") = "$(jj root 2>/dev/null)"
16
-
and set commit (jj log -r 'heads(::@ ~ empty())' --no-graph -T commit_id)
16
+
and set change (jj log -r 'heads(::@ ~ empty())' --no-graph -T change_id)
17
17
18
18
if set -q argv[1]
19
19
set host $argv[1]
···
30
30
nixos-rebuild $args --log-format internal-json --verbose &| nom --json
31
31
32
32
test $pipestatus[1] = 0
33
-
and set -q commit
34
-
and jj --color=always bookmark set $host -B -r $commit 2&>/dev/null
33
+
and set -q change
34
+
and jj --color=always bookmark set $host -B -r $change 2&>/dev/null