-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from Banh-Canh/feature/git-flags
Feature/git flags --add and --amend
- Loading branch information
Showing
5 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
.test | ||
goji | ||
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
}: | ||
pkgs.buildGoModule rec { | ||
pname = "goji"; | ||
version = "0.1.2"; | ||
|
||
src = lib.cleanSource ./.; | ||
# pkgs.fetchFromGitHub { | ||
# owner = "muandane"; | ||
# repo = "goji"; | ||
# rev = "v${version}"; | ||
# sha256 = "sha256-QFll5qr+b+bGl2QJ+rQ72FuETBSeqou/gvcvIY3oDIo="; | ||
# }; | ||
|
||
vendorHash = "sha256-YKnIAviOlLVHaD3lQKhrDlLW1f0cEjY0Az4RyuNWmzg="; | ||
|
||
subPackages = ["."]; | ||
|
||
ldflags = [ | ||
"-s" | ||
"-w" | ||
"-X goji/cmd.version=${version}" | ||
]; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/muandane/goji"; | ||
description = " Commitizen-like Emoji Commit Tool written in Go (think cz-emoji and other commitizen adapters but in go) 🚀 "; | ||
changelog = "https://github.com/muandane/goji/blob/v${version}/CHANGELOG.md"; | ||
license = "Apache 2.0 license Zine El Abidine Moualhi"; | ||
mainProgram = "goji"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/muandane/goji | ||
|
||
go 1.22.4 | ||
go 1.22.0 | ||
|
||
require ( | ||
github.com/alecthomas/assert/v2 v2.10.0 | ||
|