forked from charmbracelet/freeze
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into improve-error-msg
- Loading branch information
Showing
24 changed files
with
302 additions
and
131 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* @charmbracelet/everyone |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
labels: | ||
- "dependencies" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
labels: | ||
- "dependencies" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
labels: | ||
- "dependencies" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: lint-soft | ||
on: | ||
push: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
# Optional: allow read access to pull request. Use with `only-new-issues` option. | ||
pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint-soft | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ^1 | ||
|
||
- uses: actions/checkout@v4 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
# Optional: golangci-lint command line arguments. | ||
args: --config .golangci-soft.yml --issues-exit-code=0 | ||
# Optional: show only new issues if it's a pull request. The default value is `false`. | ||
only-new-issues: true |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: lint | ||
on: | ||
push: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
# Optional: allow read access to pull request. Use with `only-new-issues` option. | ||
pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ^1 | ||
|
||
- uses: actions/checkout@v4 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
# Optional: golangci-lint command line arguments. | ||
#args: | ||
# Optional: show only new issues if it's a pull request. The default value is `false`. | ||
only-new-issues: true |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
run: | ||
tests: false | ||
|
||
issues: | ||
include: | ||
- EXC0001 | ||
- EXC0005 | ||
- EXC0011 | ||
- EXC0012 | ||
- EXC0013 | ||
|
||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
|
||
linters: | ||
enable: | ||
- exhaustive | ||
- goconst | ||
- godot | ||
- godox | ||
- gomoddirectives | ||
- goprintffuncname | ||
- misspell | ||
- nakedret | ||
- nestif | ||
- noctx | ||
- nolintlint | ||
- prealloc | ||
- wrapcheck | ||
|
||
# disable default linters, they are already enabled in .golangci.yml | ||
disable: | ||
- errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- typecheck | ||
- unused |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
run: | ||
tests: false | ||
|
||
issues: | ||
include: | ||
- EXC0001 | ||
- EXC0005 | ||
- EXC0011 | ||
- EXC0012 | ||
- EXC0013 | ||
|
||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
|
||
linters: | ||
enable: | ||
- bodyclose | ||
- goimports | ||
- gosec | ||
- nilerr | ||
- predeclared | ||
- revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- tparallel | ||
- unconvert | ||
- unparam | ||
- whitespace |
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 |
---|---|---|
|
@@ -46,5 +46,4 @@ func TestCut(t *testing.T) { | |
t.Errorf("cut(%s, %v)", test.input, test.lines) | ||
} | ||
} | ||
|
||
} |
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,47 +1,51 @@ | ||
module github.com/charmbracelet/freeze | ||
|
||
go 1.21 | ||
go 1.21.0 | ||
|
||
toolchain go1.22.5 | ||
|
||
require ( | ||
github.com/adrg/xdg v0.4.0 | ||
github.com/adrg/xdg v0.5.0 | ||
github.com/alecthomas/chroma/v2 v2.14.0 | ||
github.com/alecthomas/kong v0.9.0 | ||
github.com/aymanbagabas/go-udiff v0.2.0 | ||
github.com/beevik/etree v1.3.0 | ||
github.com/beevik/etree v1.4.1 | ||
github.com/caarlos0/go-shellwords v1.0.12 | ||
github.com/charmbracelet/huh v0.3.1-0.20240327025511-ec643317aa10 | ||
github.com/charmbracelet/lipgloss v0.10.1-0.20240325130315-f16ea2bdcb88 | ||
github.com/charmbracelet/huh v0.6.0 | ||
github.com/charmbracelet/lipgloss v0.13.0 | ||
github.com/charmbracelet/log v0.4.0 | ||
github.com/charmbracelet/x/ansi v0.2.3 | ||
github.com/charmbracelet/x/exp/term v0.0.0-20240403043919-dea9035a27d4 | ||
github.com/creack/pty v1.1.21 | ||
github.com/creack/pty v1.1.23 | ||
github.com/kanrichan/resvg-go v0.0.2-0.20231001163256-63db194ca9f5 | ||
github.com/mattn/go-isatty v0.0.20 | ||
github.com/mattn/go-runewidth v0.0.15 | ||
golang.org/x/sys v0.18.0 | ||
github.com/mattn/go-runewidth v0.0.16 | ||
github.com/muesli/reflow v0.3.0 | ||
golang.org/x/sys v0.25.0 | ||
) | ||
|
||
require ( | ||
github.com/atotto/clipboard v0.1.4 // indirect | ||
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect | ||
github.com/catppuccin/go v0.2.0 // indirect | ||
github.com/charmbracelet/bubbles v0.18.0 // indirect | ||
github.com/charmbracelet/bubbletea v0.25.0 // indirect | ||
github.com/charmbracelet/x/errors v0.0.0-20240117030013-d31dba354651 // indirect | ||
github.com/charmbracelet/x/exp/strings v0.0.0-20240327191656-1e1cd98f30d4 // indirect | ||
github.com/containerd/console v1.0.4 // indirect | ||
github.com/dlclark/regexp2 v1.11.0 // indirect | ||
github.com/charmbracelet/bubbles v0.20.0 // indirect | ||
github.com/charmbracelet/bubbletea v1.1.0 // indirect | ||
github.com/charmbracelet/x/errors v0.0.0-20240906161213-162f3037fef5 // indirect | ||
github.com/charmbracelet/x/exp/strings v0.0.0-20240906161213-162f3037fef5 // indirect | ||
github.com/charmbracelet/x/term v0.2.0 // indirect | ||
github.com/dlclark/regexp2 v1.11.4 // indirect | ||
github.com/dustin/go-humanize v1.0.1 // indirect | ||
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
github.com/go-logfmt/logfmt v0.6.0 // indirect | ||
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect | ||
github.com/mattn/go-localereader v0.0.1 // indirect | ||
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect | ||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect | ||
github.com/muesli/cancelreader v0.2.2 // indirect | ||
github.com/muesli/reflow v0.3.0 // indirect | ||
github.com/muesli/termenv v0.15.2 // indirect | ||
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a // indirect | ||
github.com/rivo/uniseg v0.4.7 // indirect | ||
github.com/tetratelabs/wazero v1.7.0 // indirect | ||
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 // indirect | ||
golang.org/x/sync v0.6.0 // indirect | ||
golang.org/x/term v0.18.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
github.com/tetratelabs/wazero v1.8.0 // indirect | ||
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e // indirect | ||
golang.org/x/sync v0.8.0 // indirect | ||
golang.org/x/text v0.18.0 // indirect | ||
) |
Oops, something went wrong.