Side-by-side semantic diff tool with theme support and hookable integration
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: add version bumper

+28 -1
+13
README.md
··· 178 178 go test ./... # run tests 179 179 nix build # hermetic build → ./result/bin/adiff 180 180 ``` 181 + 182 + ### Releasing 183 + 184 + `VERSION` is the single source of truth for the release version. Bump it with [`svu`](https://github.com/caarlos0/svu) via the flake app: 185 + 186 + ```sh 187 + nix run .#bump-version # bump to next version (based on conventional commits) 188 + nix run .#bump-version -- patch # force a patch bump 189 + nix run .#bump-version -- minor # force a minor bump 190 + nix run .#bump-version -- major # force a major bump 191 + ``` 192 + 193 + After bumping, commit `VERSION` and tag the release.
+1 -1
VERSION
··· 1 - 0.4.0 1 + v0.1.0
+14
flake.nix
··· 147 147 meta.mainProgram = "adiff"; 148 148 }; 149 149 150 + apps.bump-version = { 151 + type = "app"; 152 + program = toString (pkgs.writeShellScript "bump-version" '' 153 + set -euo pipefail 154 + root=$(${pkgs.lib.getExe pkgs.jujutsu} root 2>/dev/null || git rev-parse --show-toplevel) 155 + cd "$root" 156 + subcmd=''${1:-next} 157 + new=$(${pkgs.lib.getExe pkgs.svu} "$subcmd") 158 + printf '%s\n' "$new" > VERSION 159 + echo "VERSION bumped to $new" 160 + ''); 161 + }; 162 + 150 163 apps.update-screenshot = let 151 164 tape = pkgs.writeText "adiff-screenshot.tape" '' 152 165 Set Shell "bash" ··· 182 195 pkgs.gopls 183 196 pkgs.gotools 184 197 pkgs.delve 198 + pkgs.svu 185 199 pkgs.vhs 186 200 ]; 187 201 shellHook = ''