Skip to content

Commit

Permalink
Bump cristalhq/.github from 0.4.0 to 0.5.0 (#52)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Oleg Kovalov <[email protected]>
  • Loading branch information
dependabot[bot] and cristaloleg authored Mar 21, 2023
1 parent fe88e35 commit 068270b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
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

0 comments on commit 068270b

Please sign in to comment.