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.

feat: add --version flag

+21 -6
+7 -2
CHANGELOG.md
··· 1 1 # Changelog 2 2 3 - ## [0.5.0] - 2026-04-28 3 + ## [0.6.1] - 2026-04-28 4 4 5 5 ### Bug Fixes 6 6 ··· 13 13 14 14 ### Miscellaneous Tasks 15 15 16 + - Update version bumper to update 'VERSION' and 'CHANGELOG.md' 17 + 18 + ## [0.5.0] - 2026-04-28 19 + 20 + ### Miscellaneous Tasks 21 + 16 22 - Add version bumper 17 - - Update versi bumper to update `VERSION` and CHANGELOG.md 18 23 19 24 ## [0.4.0] - 2026-04-28 20 25
+1 -1
VERSION
··· 1 - 0.5.0 1 + 0.6.1
+3 -3
flake.nix
··· 154 154 root=$(${pkgs.lib.getExe pkgs.jujutsu} root 2>/dev/null || git rev-parse --show-toplevel) 155 155 cd "$root" 156 156 subcmd=''${1:-next} 157 - new=$(${pkgs.lib.getExe pkgs.svu} "$subcmd" --tag.prefix "") 158 - printf '%s\n' "$new" > VERSION 159 - echo "VERSION bumped to $new" 157 + new=$(${pkgs.lib.getExe pkgs.svu} "$subcmd") 158 + printf '%s\n' "''${new#v}" > VERSION 159 + echo "VERSION bumped to ''${new#v}" 160 160 ${pkgs.lib.getExe pkgs.git-cliff} --tag "$new" --output CHANGELOG.md 161 161 echo "CHANGELOG.md updated" 162 162 git tag -a "$new" -m "Release $new"
+10
main.go
··· 1 1 package main 2 2 3 3 import ( 4 + _ "embed" 4 5 "flag" 5 6 "fmt" 6 7 "os" ··· 708 709 709 710 // ── main ────────────────────────────────────────────────────────────────────── 710 711 712 + //go:embed VERSION 713 + var version string 714 + 711 715 func main() { 716 + showVersion := flag.Bool("version", false, "print version and exit") 712 717 theme := flag.String("theme", "nord", "theme name or path to a .toml theme file") 713 718 interactive := flag.Bool("i", false, "interactive TUI mode") 714 719 widthFlag := flag.Int("width", 0, "override output width in columns (default: auto-detect)") ··· 717 722 flag.PrintDefaults() 718 723 } 719 724 flag.Parse() 725 + 726 + if *showVersion { 727 + fmt.Print(strings.TrimSpace(version)) 728 + return 729 + } 720 730 721 731 var oldFile, newFile string 722 732 switch flag.NArg() {