Skip to content

Commit

Permalink
update toolchain version
Browse files Browse the repository at this point in the history
  • Loading branch information
das6ng committed Dec 4, 2023
1 parent eeb03f6 commit 6bd1fa8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/dashengyeah/workman
module github.com/das6ng/workman

go 1.19
go 1.21

require (
atomicgo.dev/cursor v0.1.1
atomicgo.dev/keyboard v0.2.8
github.com/pterm/pterm v0.12.45
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4
golang.org/x/mod v0.14.0
)

require (
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHg
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"path/filepath"

"github.com/dashengyeah/workman/mgr"
"github.com/das6ng/workman/mgr"
)

var (
Expand Down
8 changes: 6 additions & 2 deletions mgr/tool_cui.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package mgr

import (
"log"

"atomicgo.dev/cursor"
"atomicgo.dev/keyboard"
"atomicgo.dev/keyboard/keys"
Expand All @@ -15,7 +17,7 @@ func (m *WorkManager) CUIMain() {
m.ShowUsed()
var add, drop []string
exit := false
keyboard.Listen(func(key keys.Key) (stop bool, err error) {
if err := keyboard.Listen(func(key keys.Key) (stop bool, err error) {
switch key.Code {
case keys.RuneKey:
if key.String() == "q" || key.String() == "Q" {
Expand All @@ -30,7 +32,9 @@ func (m *WorkManager) CUIMain() {
return true, nil
}
return false, nil
})
}); err != nil {
log.Println("keyboard listen err:", err)
}
if exit {
m.Printer.Msg("Bye")
break
Expand Down

0 comments on commit 6bd1fa8

Please sign in to comment.