env command modified to show uid/gid of user

pull/778/head
Hunter Long 2020-08-06 03:52:25 -07:00
parent 630bf08817
commit 9ee7ab116a
1 changed files with 4 additions and 0 deletions

View File

@ -198,6 +198,10 @@ func resetCli() error {
func envCli() error {
fmt.Println("Statping Configuration")
fmt.Printf("Process ID: %d\n", os.Getpid())
fmt.Printf("Running as user id: %d\n", os.Getuid())
fmt.Printf("Running as group id: %d\n", os.Getgid())
fmt.Printf("Statping Directory: %s\n", utils.Directory)
for k, v := range utils.Params.AllSettings() {
fmt.Printf("%s=%v\n", strings.ToUpper(k), v)
}