forked from markbates/refresh
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hlubek bugfix config init (markbates#48)
* Fix init without explicit config flag (markbates#36) - Config file defaults to refresh.yml - Check if file already exists before overwriting it - Refactor error checkin in Cobra commands * 1.17 update * Update tests.yml Co-authored-by: Christopher Hlubek <[email protected]>
- Loading branch information
Showing
8 changed files
with
586 additions
and
130 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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
name: Tests | ||
on: [push] | ||
jobs: | ||
|
||
tests-on: | ||
name: ${{matrix.go-version}} ${{matrix.os}} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
go-version: [1.12.x, 1.13.x] | ||
go-version: [1.17.x] | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- name: Test | ||
run: | | ||
go mod tidy -v | ||
go test -race ./... | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17.x | ||
- name: Checkout Code | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- name: Test | ||
run: | | ||
go mod tidy -v | ||
go test -race ./... |
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 |
---|---|---|
|
@@ -27,3 +27,4 @@ generated/ | |
bin/* | ||
gin-bin | ||
.idea/ | ||
.vscode |
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 |
---|---|---|
@@ -1,11 +1,19 @@ | ||
module github.com/markbates/refresh | ||
|
||
go 1.13 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/fatih/color v1.9.0 | ||
github.com/fsnotify/fsnotify v1.4.7 | ||
github.com/fatih/color v1.13.0 | ||
github.com/fsnotify/fsnotify v1.5.1 | ||
github.com/mitchellh/go-homedir v1.1.0 | ||
github.com/spf13/cobra v0.0.6 | ||
gopkg.in/yaml.v2 v2.2.8 | ||
github.com/spf13/cobra v1.2.1 | ||
gopkg.in/yaml.v2 v2.4.0 | ||
) | ||
|
||
require ( | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/mattn/go-colorable v0.1.9 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect | ||
) |