github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/integration/helpers/ssh_command.go (about) 1 package helpers 2 3 import ( 4 "encoding/json" 5 ) 6 7 func GetsEnablementValue(stream []byte) bool { 8 enablementResponse := struct { 9 Enabled bool `json:"enabled"` 10 }{} 11 12 json.Unmarshal(stream, &enablementResponse) 13 14 return enablementResponse.Enabled 15 }