Add exe path to info
This commit is contained in:
parent
ec29fbc67f
commit
0adad92d0f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user