Remove all schollz/* dependencies: fork pake, replicate logger and CLI

- src/pake: trimmed fork of schollz/pake/v3, P256-only (stdlib
  crypto/elliptic), dropping the tscholl2/siec and filippo.io/edwards25519
  transitive deps along with it.
- src/logger: minimal in-repo replacement for schollz/logger with the
  same leveled-logging call surface.
- src/cli: replaced schollz/cli (urfave/cli fork) with a small
  flag-package-based parser for the send/relay/receive commands actually
  in use; subcommand keyword can appear before or after its flags.
- Dropped schollz/progressbar entirely (its show-progress code paths were
  already unreachable dead code since no CLI flag wired them up).

go.mod/go.sum no longer reference any schollz/* module.
This commit is contained in:
2026-07-20 11:26:59 +08:00
parent 3a0ab392c0
commit 34ce1f4e65
14 changed files with 451 additions and 263 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"sync"
"time"
log "github.com/schollz/logger"
log "github.com/tzgyn/share/src/logger"
"github.com/tzgyn/share/src/comm"
"github.com/tzgyn/share/src/tcp"