Compare commits

..

1 Commits

Author SHA1 Message Date
3c1dd29d5f fix: loading print panic 2024-12-26 23:02:37 -08:00
2 changed files with 5 additions and 5 deletions

View File

@ -42,6 +42,10 @@ func Do(ctx context.Context, fn func(ctx context.Context, print func(msg string,
start := time.Now()
ch := make(chan *_msg)
defer func() {
fmt.Printf("\r\033[K")
}()
go func() {
var (
m *_msg
@ -49,10 +53,6 @@ func Do(ctx context.Context, fn func(ctx context.Context, print func(msg string,
processing string
)
defer func() {
fmt.Printf("\r\033[K")
}()
for {
for _, frame := range frames {
select {

View File

@ -4,7 +4,7 @@ const Version = "v24.12.27-r03"
// const VersionURL = "https://github.com/loveuer/nf/nft/nfctl/internal/opt/version.go"
const VersionURL = "https://raw.githubusercontent.com/loveuer/nf/refs/heads/master/nft/nfctl/internal/opt/version.go"
const VersionURL = "https://gitea.loveuer.com/loveuer/nf/raw/branch/master/nft/nfctl/internal/opt/version.go"
const Banner = ` ___ __ __
___ / _/___/ /_/ /