mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-05 12:24:08 +01:00
* MIT-Lizenz; Terminal-Verlauf kompakt, schnellerer Bildlauf, Manager mit vielen Verbindungen schneller - LICENSE (MIT), winget/Homebrew/apt-Metadaten, README, Webseite, --version - termemu: Verlauf mit 8 statt 112 Byte pro Zeichen, Ringpuffer - third_party/vt: angepasste Kopie (rotateLines, SetScrollbackHook) - Store: Connections() zwischengespeichert; Manager: buildRows ohne Teillisten, Fußzeile misst Breiten einmal - Benchmarks: make bench Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUjBAAPCAZVnGzCZxdS * Testprogramm aus dem Commit entfernt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUjBAAPCAZVnGzCZxdS * Testprogramm entfernt, *.test ignorieren Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUjBAAPCAZVnGzCZxdS * TestSerialSession: auf stehenden Prompt warten statt auf das erste # Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUjBAAPCAZVnGzCZxdS --------- Co-authored-by: Claude <noreply@anthropic.com>
42 lines
1.4 KiB
Go
42 lines
1.4 KiB
Go
// Package version: Programmname, Version und Credits an genau einer Stelle.
|
|
//
|
|
// Version, Commit und Date setzt der Build per -ldflags (siehe Makefile und
|
|
// .github/workflows/release.yml). Die Version zählt bei jedem Push auf main
|
|
// automatisch hoch: MAJOR.MINOR aus der Datei VERSION, PATCH = Anzahl der
|
|
// Commits (git rev-list --count HEAD). Lokale Builds ohne ldflags heißen "dev".
|
|
package version
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
|
|
"github.com/db9979/sshtermy/internal/i18n"
|
|
)
|
|
|
|
const (
|
|
Name = "sshTermy"
|
|
Idea = "Idee: Dominik Bornhäußer"
|
|
Repo = "db9979/sshtermy"
|
|
Slogan = "SSH-Terminal mit KI-Copilot"
|
|
// Coffee: Buy-Me-a-Coffee-Seite von Dominik (dieselbe wie bei speech-on-dgx-spark).
|
|
Coffee = "https://buymeacoffee.com/zquu1xu570"
|
|
)
|
|
|
|
var (
|
|
Version = "dev" // z. B. "1.0.42"
|
|
Commit = "none" // kurzer Git-Hash
|
|
Date = "unknown" // Build-Zeit (UTC, RFC 3339)
|
|
// UpdatePubKey: Ed25519-Public-Key (hex) zum Prüfen der Release-Signatur.
|
|
// Wird im Release-Build gesetzt; leer = Updates nur mit SHA-256-Prüfung.
|
|
UpdatePubKey = ""
|
|
)
|
|
|
|
// Short: "sshTermy v1.0.42"
|
|
func Short() string { return fmt.Sprintf("%s v%s", Name, Version) }
|
|
|
|
// Long: für "sshtermy --version" und den Über-Dialog.
|
|
func Long() string {
|
|
return fmt.Sprintf("%s v%s (%s, %s) %s/%s\n%s\n%s · MIT · https://github.com/%s",
|
|
Name, Version, Commit, Date, runtime.GOOS, runtime.GOARCH, i18n.T(Slogan), i18n.T(Idea), Repo)
|
|
}
|