This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐ ci(goreleaser.yml): update goreleaser config to include separate buโฆ
โฆilds for linux-amd64, darwin-amd64, and darwin-arm64 ๐ chore(.gitignore): add flags/version.txt to .gitignore ๐ chore(.goreleaser): add support for darwin-arm64 builds ๐ chore(goreleaser): add linux-amd64 build configuration ๐จ chore(Makefile): add generate target ๐จ chore(flags): add version variable and generate script ๐จ chore(cli): add version variable to kong.Vars ๐ feat(commands.go): add version flag to print version information and quit ๐ docs(commands.go): add help text for version flag ๐ docs(commands.go): add help text for count-tokens command ๐ fix(get_version.sh): add newline at the end of file
- Loading branch information
1 parent
48d0eb5
commit f54865e
Showing
10 changed files
with
41 additions
and
12 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
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ cmd/chloe/chloe | |
logging.iml | ||
|
||
dist/ | ||
flags/version.txt |
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
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
package flags | ||
|
||
import ( | ||
_ "embed" | ||
) | ||
|
||
var InteractiveCLI bool | ||
|
||
//go:generate bash ../scripts/get_version.sh | ||
//go:embed version.txt | ||
var Version string |
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,2 @@ | ||
#!/bin/bash | ||
git describe --tags --abbrev=0 > version.txt |