Skip to content

Commit

Permalink
Merge pull request #1 from foomo/default-config
Browse files Browse the repository at this point in the history
refactor: rename default config
  • Loading branch information
franklinkim authored Oct 17, 2024
2 parents 9b77679 + 0508c14 commit 7370d7c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
!.husky/
!.husky.yaml

## Ownbrew
!.ownbrew.yaml

## Golang
!.golangci.yml
!.goreleaser.yml
6 changes: 3 additions & 3 deletions ownbrew.yaml → .ownbrew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
version: '1.0'

binDir: "bin"
tapDir: ".ownbrew"
tempDir: "tmp/ownbrew"
cellarDir: "tmp/bin"
tapDir: ".ownbrew/tap"
tempDir: ".ownbrew/tmp"
cellarDir: ".ownbrew/bin"
packages:
## https://github.com/golangci/golangci-lint/releases
- name: golangci-lint
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ $ brew install foomo/tap/ownbrew

## Usage

Add a `ownbrew.yaml` configuration
Add a `.ownbrew.yaml` configuration

```yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/foomo/ownbrew/v0.1.0/ownbrew.yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/foomo/ownbrew/v0.1.0/ownbrew.schema.json
version: '1.0'

binDir: "bin"
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewRoot() *cobra.Command {
cmd.PersistentFlags().BoolP("verbose", "v", false, "output debug information")
_ = viper.BindPFlag("verbose", cmd.PersistentFlags().Lookup("verbose"))

cmd.PersistentFlags().StringP("config", "c", "ownbrew.yaml", "config file (default is ownbrew.yaml)")
cmd.PersistentFlags().StringP("config", "c", ".ownbrew.yaml", "config file (default is .ownbrew.yaml)")
_ = viper.BindPFlag("config", cmd.PersistentFlags().Lookup("config"))
return cmd
}
Expand Down

0 comments on commit 7370d7c

Please sign in to comment.