Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Cover same feature in last flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 28, 2023
1 parent f9d1786 commit 3804ebf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/nixpkgs-url/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ $ nixpkgs-url -version`
log.Fatalf("Getting the last version has been failed: %s", err.Error())
}
if *lastFlag {
fmt.Println(last)
if *jumpFlag {
// Do not call as xdg-open for WSL2, URL will be displayed as a clickable in newer terminals, it is enought

Check warning on line 103 in cmd/nixpkgs-url/main.go

View workflow job for this annotation

GitHub Actions / typos

"enought" should be "enough".
// https://github.com/microsoft/WSL/issues/8892
fmt.Println("https://github.com/NixOS/nixpkgs/commit/" + last)
} else {
fmt.Println(last)
}
return
}

Expand Down

0 comments on commit 3804ebf

Please sign in to comment.