remove build date that doesn't work

This commit is contained in:
rumanzo 2024-04-06 20:43:55 +03:00
parent 1e76ad50fd
commit 05e8c335a3
No known key found for this signature in database

View File

@ -2,17 +2,18 @@ package main
import ( import (
"fmt" "fmt"
"log"
"os"
"path"
"runtime"
"time"
"github.com/fatih/color" "github.com/fatih/color"
"github.com/rumanzo/bt2qbt/internal/options" "github.com/rumanzo/bt2qbt/internal/options"
"github.com/rumanzo/bt2qbt/internal/transfer" "github.com/rumanzo/bt2qbt/internal/transfer"
"github.com/rumanzo/bt2qbt/pkg/helpers" "github.com/rumanzo/bt2qbt/pkg/helpers"
"github.com/rumanzo/bt2qbt/pkg/utorrentStructs" "github.com/rumanzo/bt2qbt/pkg/utorrentStructs"
"github.com/zeebo/bencode" "github.com/zeebo/bencode"
"log"
"os"
"path"
"runtime"
"time"
) )
var version, commit, date, buildImage string var version, commit, date, buildImage string
@ -21,8 +22,7 @@ func main() {
opts := options.MakeOpts() opts := options.MakeOpts()
if opts.Version { if opts.Version {
date = time.Now().Format("2006-01-02 15:04:05") fmt.Printf("Version: %v\nCommit: %v\nGolang version: %v\nBuild image: %v\n", version, commit, runtime.Version(), buildImage)
fmt.Printf("Version: %v\nCommit: %v\nGolang version: %v\nBuild image: %v\nBuild date: %v\n", version, commit, runtime.Version(), buildImage, date)
os.Exit(0) os.Exit(0)
} }