diff --git a/cmd/info.go b/cmd/info.go index e5d88e7..f837c7b 100644 --- a/cmd/info.go +++ b/cmd/info.go @@ -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)