Skip to content

Commit

Permalink
📦 deps: bump go version
Browse files Browse the repository at this point in the history
  • Loading branch information
fawni committed Jun 9, 2023
1 parent 63d1210 commit 6f46b7f
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 320 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
strategy:
matrix:
go-version: [~1.16, ^1]
go-version: [~1.20, ^1]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "^1.16"
go-version: "^1.20"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ page.

### Build from source

Go 1.16 or higher required. ([install instructions](https://golang.org/doc/install.html))
Go 1.20 or higher required. ([install instructions](https://golang.org/doc/install.html))

go install github.com/fawni/asunder@latest

Expand Down
48 changes: 45 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/fawni/asunder

go 1.16
go 1.20

require (
github.com/AlecAivazis/survey/v2 v2.3.6
Expand All @@ -16,6 +16,48 @@ require (
github.com/uptrace/bun v1.1.14
github.com/uptrace/bun/dialect/sqlitedialect v1.1.14
github.com/uptrace/bun/driver/sqliteshim v1.1.14
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

require (
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mattn/go-sqlite3 v1.14.16 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/sahilm/fuzzy v0.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
golang.org/x/mod v0.10.0 // indirect
golang.org/x/sync v0.2.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/term v0.6.0 // indirect
golang.org/x/text v0.3.8 // indirect
golang.org/x/tools v0.9.1 // indirect
lukechampine.com/uint128 v1.3.0 // indirect
modernc.org/cc/v3 v3.40.0 // indirect
modernc.org/ccgo/v3 v3.16.13 // indirect
modernc.org/libc v1.22.6 // indirect
modernc.org/mathutil v1.5.0 // indirect
modernc.org/memory v1.5.0 // indirect
modernc.org/opt v0.1.3 // indirect
modernc.org/sqlite v1.22.1 // indirect
modernc.org/strutil v1.1.3 // indirect
modernc.org/token v1.1.0 // indirect
)
317 changes: 6 additions & 311 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion internal/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func renderEntriesTable() {
os.Exit(1)
}

termenv.ClearScreen()
termenv.NewOutput(os.Stdout).ClearScreen()
t := table.NewWriter()
t.SetStyle(table.StyleLight)
t.SetOutputMirror(os.Stdout)
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func startModel() error {
}

program := tea.NewProgram(m, tea.WithAltScreen())
if err := program.Start(); err != nil {
if _, err := program.Run(); err != nil {
return err
}

Expand Down Expand Up @@ -155,7 +155,7 @@ func setupModel() (Model, error) {

m := Model{List: list.New(items, list.NewDefaultDelegate(), 0, 0), Timer: timer.New(common.TTL)}
m.List.Title = "asunder"
termenv.SetWindowTitle(m.List.Title)
termenv.NewOutput(os.Stdout).SetWindowTitle(m.List.Title)
m.List.StatusMessageLifetime = 1200 * time.Millisecond
if len(items) > 0 {
m.List.AdditionalShortHelpKeys = func() []teakey.Binding {
Expand Down

0 comments on commit 6f46b7f

Please sign in to comment.