Add exe path to info

This commit is contained in:
Tim Van Baak 2025-05-03 22:40:35 -07:00
parent ec29fbc67f
commit 0adad92d0f

View File

@ -3,6 +3,7 @@ package cmd
import (
"database/sql"
"fmt"
"os"
"runtime/debug"
"github.com/Jaculabilis/intake/core"
@ -27,6 +28,13 @@ func init() {
}
func info(buildInfo bool) {
exe, err := os.Executable()
if err != nil {
fmt.Printf("intake: error: %v\n", err)
} else {
fmt.Printf("intake: %s\n", exe)
}
fmt.Printf("Revision: %s\n", core.GetRevInfo())
fmt.Printf("Data path: %s\n", dataPath)