hst/info: include extra information
All checks were successful
Test / Create distribution (push) Successful in 43s
Test / Sandbox (push) Successful in 2m34s
Test / Hakurei (push) Successful in 3m45s
Test / Sandbox (race detector) (push) Successful in 4m33s
Test / Hpkg (push) Successful in 4m41s
Test / Hakurei (race detector) (push) Successful in 5m25s
Test / Flake checks (push) Successful in 1m37s
All checks were successful
Test / Create distribution (push) Successful in 43s
Test / Sandbox (push) Successful in 2m34s
Test / Hakurei (push) Successful in 3m45s
Test / Sandbox (race detector) (push) Successful in 4m33s
Test / Hpkg (push) Successful in 4m41s
Test / Hakurei (race detector) (push) Successful in 5m25s
Test / Flake checks (push) Successful in 1m37s
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
332d90d6c7
commit
c989e7785a
@ -23,9 +23,9 @@ func printShowSystem(output io.Writer, short, flagJSON bool) {
|
|||||||
t := newPrinter(output)
|
t := newPrinter(output)
|
||||||
defer t.MustFlush()
|
defer t.MustFlush()
|
||||||
|
|
||||||
info := new(hst.Info)
|
info := &hst.Info{Paths: std.Paths()}
|
||||||
|
|
||||||
// get fid by querying uid of aid 0
|
// get hid by querying uid of identity 0
|
||||||
if uid, err := std.Uid(0); err != nil {
|
if uid, err := std.Uid(0); err != nil {
|
||||||
hlog.PrintBaseError(err, "cannot obtain uid from setuid wrapper:")
|
hlog.PrintBaseError(err, "cannot obtain uid from setuid wrapper:")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
@ -39,6 +39,10 @@ func printShowSystem(output io.Writer, short, flagJSON bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
t.Printf("User:\t%d\n", info.User)
|
t.Printf("User:\t%d\n", info.User)
|
||||||
|
t.Printf("TempDir:\t%s\n", info.TempDir)
|
||||||
|
t.Printf("SharePath:\t%s\n", info.SharePath)
|
||||||
|
t.Printf("RuntimePath:\t%s\n", info.RuntimePath)
|
||||||
|
t.Printf("RunDirPath:\t%s\n", info.RunDirPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
func printShowInstance(
|
func printShowInstance(
|
||||||
|
@ -2,4 +2,5 @@ package hst
|
|||||||
|
|
||||||
type Info struct {
|
type Info struct {
|
||||||
User int `json:"user"`
|
User int `json:"user"`
|
||||||
|
Paths
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user