Update to use project specific UI

This commit is contained in:
Chris Roberts 2021-05-20 09:38:27 -07:00 committed by Paul Hinze
parent ab1d9ab80f
commit 06f3d7fd21
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -107,12 +107,21 @@ func (c *Command) ExecuteInfo(trm terminal.UI, p plugincore.Project) int64 {
trm.Output("\nEnvironment information")
trm.Output("Working directory: " + cwd)
trm.Output("Data directory: " + datadir.DataDir().String())
if datadir != nil && datadir.DataDir() != nil {
trm.Output("Data directory: " + datadir.DataDir().String())
}
trm.Output("Vagrantfile name: " + vagrantfileName)
trm.Output("Home directory: " + home)
trm.Output("Local data directory: " + localDataPath)
trm.Output("Default private key path: " + defaultPrivateKeyPath)
ptrm, err := p.UI()
if err != nil {
trm.Output("Failed to get project specific UI! Reason: " + err.Error())
} else {
ptrm.Output("YAY! This is project specific output!")
}
return 0
}