This repository has been archived by the owner on May 11, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use -trimpath to build dist binary, update deps and sync template
- Loading branch information
Showing
43 changed files
with
3,581 additions
and
1,952 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 |
---|---|---|
|
@@ -2,50 +2,52 @@ | |
project_name: egg | ||
|
||
archives: | ||
- id: egg | ||
files: | ||
- LICENSE | ||
format: tar.gz | ||
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}-{{.Arch}}" | ||
replacements: | ||
386: 32bit | ||
amd64: 64bit | ||
darwin: macOS | ||
linux: Linux | ||
- id: egg | ||
files: | ||
- LICENSE | ||
format: tar.gz | ||
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}-{{.Arch}}" | ||
replacements: | ||
386: 32bit | ||
amd64: 64bit | ||
darwin: macOS | ||
linux: Linux | ||
|
||
brews: | ||
- name: egg | ||
commit_author: | ||
name: Kamil Samigullin | ||
email: [email protected] | ||
description: Extended go get - alternative for the standard `go get` with a few little but useful features. | ||
folder: Formula | ||
homepage: https://github.com/kamilsk/egg | ||
github: | ||
owner: kamilsk | ||
name: homebrew-tap | ||
install: | | ||
bin.install "egg" | ||
output = Utils.popen_read("#{bin}/egg completion bash") | ||
(bash_completion/"egg").write output | ||
output = Utils.popen_read("#{bin}/egg completion zsh") | ||
(zsh_completion/"_egg").write output | ||
prefix.install_metafiles | ||
test: | | ||
system "#{bin}/egg --version" | ||
- name: egg | ||
commit_author: | ||
name: Kamil Samigullin | ||
email: [email protected] | ||
description: Extended go get - alternative for the standard `go get` with a few little but useful features. | ||
folder: Formula | ||
homepage: https://github.com/kamilsk/egg | ||
github: | ||
owner: kamilsk | ||
name: homebrew-tap | ||
install: | | ||
bin.install "egg" | ||
output = Utils.popen_read("#{bin}/egg completion bash") | ||
(bash_completion/"egg").write output | ||
output = Utils.popen_read("#{bin}/egg completion zsh") | ||
(zsh_completion/"_egg").write output | ||
prefix.install_metafiles | ||
test: | | ||
system "#{bin}/egg --version" | ||
builds: | ||
- binary: egg | ||
env: | ||
- CGO_ENABLED=0 | ||
goarch: | ||
- 386 | ||
- amd64 | ||
goos: | ||
- darwin | ||
- linux | ||
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} | ||
main: . | ||
- binary: egg | ||
env: | ||
- CGO_ENABLED=0 | ||
flags: | ||
- -trimpath | ||
goarch: | ||
- 386 | ||
- amd64 | ||
goos: | ||
- darwin | ||
- linux | ||
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} | ||
main: . | ||
|
||
checksum: { name_template: checksums.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
make deps hooks |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
make deps-tidy deps-fetch lint format | ||
git diff --quiet --exit-code |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
make generate | ||
git diff --quiet --exit-code |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package cmd_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
"github.com/stretchr/testify/require" | ||
|
||
. "github.com/kamilsk/egg/internal/cmd" | ||
) | ||
|
||
func TestNew(t *testing.T) { | ||
root := New() | ||
require.NotNil(t, root) | ||
assert.NotEmpty(t, root.Use) | ||
assert.NotEmpty(t, root.Short) | ||
assert.NotEmpty(t, root.Long) | ||
assert.False(t, root.SilenceErrors) | ||
assert.True(t, root.SilenceUsage) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.