Skip to content

Commit

Permalink
Merge branch 'main' into stricter-config
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Nov 26, 2023
2 parents d73d229 + 805bd0c commit 0082730
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
16 changes: 12 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
version: 2
updates:
- package-ecosystem: gomod
- package-ecosystem: "gomod"
commit-message:
prefix: "deps:"
directory: "/"
schedule:
interval: daily
- package-ecosystem: github-actions
interval: "weekly"
day: "sunday"
time: "09:00"
- package-ecosystem: "github-actions"
commit-message:
prefix: "ci:"
directory: "/"
schedule:
interval: daily
interval: "weekly"
day: "sunday"
time: "09:00"
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
# See https://github.com/cristalhq/.github/.github/workflows
jobs:
build:
uses: cristalhq/.github/.github/workflows/build.yml@v0.5.0
uses: cristalhq/.github/.github/workflows/build.yml@v0.6.0

vuln:
uses: cristalhq/.github/.github/workflows/vuln.yml@v0.5.0
uses: cristalhq/.github/.github/workflows/vuln.yml@v0.6.0
4 changes: 2 additions & 2 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func run() error {

## Flags propagation

There is no special methods, config fields to propagate flags to subcommands. However it's not hard to make this, because every command can access predefined flags, which are shared across handlers.
There is no special methods, config fields to propagate flags to subcommands. However, it's not hard to make this, because every command can access predefined flags, which are shared across handlers.

```go
// generalFlags can be used as flags for all command
Expand Down Expand Up @@ -124,4 +124,4 @@ $ ./my_binary version
./my_binary version: (local)
```

Starting from Go 1.18 this information is avaliable in `runtime/debug.BuildInfo`, see: https://github.com/golang/go/issues/37475
Starting from Go 1.18 this information is available in `runtime/debug.BuildInfo`, see: https://github.com/golang/go/issues/37475
2 changes: 1 addition & 1 deletion acmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type Config struct {
// Version of the application.
Version string

// Output is a destionation where result will be printed.
// Output is a destination where result will be printed.
// Exported for testing purpose only, if nil os.Stdout is used.
Output io.Writer

Expand Down

0 comments on commit 0082730

Please sign in to comment.