Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump cristalhq/.github from 0.4.0 to 0.5.0 #52

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
# See https://github.com/cristalhq/.github/.github/workflows
jobs:
build:
uses: cristalhq/.github/.github/workflows/build.yml@v0.4.0
uses: cristalhq/.github/.github/workflows/build.yml@v0.5.0

vuln:
uses: cristalhq/.github/.github/workflows/vuln.yml@v0.4.0
uses: cristalhq/.github/.github/workflows/vuln.yml@v0.5.0
15 changes: 8 additions & 7 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func ExampleRunner() {
// now: 10:20:30
}

func ExampleHelp() {
func Example_verboseHelp() {
testOut := os.Stdout
testArgs := []string{"someapp", "help"}

Expand Down Expand Up @@ -115,6 +115,7 @@ func ExampleHelp() {
Version: "the best v0.x.y",
Output: testOut,
Args: testArgs,
VerboseHelp: !true, // TODO(cristaloleg): fix this
})

if err := r.Run(); err != nil {
Expand Down Expand Up @@ -143,7 +144,7 @@ func ExampleHelp() {
// Version: the best v0.x.y
}

func ExampleVersion() {
func Example_version() {
testOut := os.Stdout
testArgs := []string{"someapp", "version"}

Expand All @@ -168,7 +169,7 @@ func ExampleVersion() {
// Output: acmd-example version: the best v0.x.y
}

func ExampleAlias() {
func Example_alias() {
testOut := os.Stdout
testArgs := []string{"someapp", "f"}

Expand Down Expand Up @@ -207,7 +208,7 @@ func ExampleAlias() {
// Output: foo
}

func ExampleAutosuggestion() {
func Example_autosuggestion() {
testOut := os.Stdout
testArgs := []string{"someapp", "baz"}

Expand All @@ -234,7 +235,7 @@ func ExampleAutosuggestion() {
// Run "acmd-example help" for usage.
}

func ExampleNestedCommands() {
func Example_nestedCommands() {
testOut := os.Stdout
testArgs := []string{"someapp", "foo", "qux"}

Expand Down Expand Up @@ -279,7 +280,7 @@ func (mc *myCommand) ExecCommand(ctx context.Context, args []string) error {
return mc.ErrToReturn
}

func ExampleExecStruct() {
func Example_execStruct() {
myErr := errors.New("everything is ok")
myCmd := &myCommand{ErrToReturn: myErr}

Expand Down Expand Up @@ -311,7 +312,7 @@ func ExampleExecStruct() {
// Output:
}

func ExamplePropagateFlags() {
func Example_propagateFlags() {
testOut := os.Stdout
testArgs := []string{"someapp", "foo", "-dir=test-dir", "--verbose"}
buf := &bytes.Buffer{}
Expand Down