镜像自地址
https://github.com/quitesimpleorg/hs9001.git
已同步 2025-09-18 14:46:21 +02:00
Add 'version' command
这个提交包含在:
5
main.go
5
main.go
@@ -27,6 +27,9 @@ type HistoryEntry struct {
|
||||
timestamp time.Time
|
||||
}
|
||||
|
||||
var GitTag string
|
||||
var GitCommit string
|
||||
|
||||
func databaseLocation() string {
|
||||
envOverride := os.Getenv("HS9001_DB_PATH")
|
||||
if envOverride != "" {
|
||||
@@ -354,6 +357,8 @@ func main() {
|
||||
os.Exit(23)
|
||||
case "import":
|
||||
importFromStdin(conn)
|
||||
case "version":
|
||||
fmt.Fprintf(os.Stdout, "Git Tag: %s\nGit Commit: %s\n", GitTag, GitCommit)
|
||||
default:
|
||||
fmt.Fprintf(os.Stderr, "Error: Unknown subcommand '%s' supplied\n\n", cmd)
|
||||
printUsage()
|
||||
|
在新工单中引用
屏蔽一个用户