Route generic App and CLI code through lifecycle and driver models. Move native macOS detail, create, settings and legacy flows into explicit files, share progress and redaction through host, and enforce the boundary with a file-scoped architecture ratchet.
20 lines
378 B
Go
20 lines
378 B
Go
package app
|
|
|
|
import "github.com/Nwflower/reims-go/internal/driver"
|
|
|
|
func vmInfoString(vm driver.VMInfo, key string) string {
|
|
if vm.DriverData == nil {
|
|
return ""
|
|
}
|
|
value, _ := vm.DriverData[key].(string)
|
|
return value
|
|
}
|
|
|
|
func vmInfoBool(vm driver.VMInfo, key string) bool {
|
|
if vm.DriverData == nil {
|
|
return false
|
|
}
|
|
value, _ := vm.DriverData[key].(bool)
|
|
return value
|
|
}
|