in try_dax.go [293:306]
func validate() error {
if service == nil || !contains(*service, services) {
return fmt.Errorf("service should be one of [%s]", strings.Join(services, " | "))
}
if _, ok := commandMap[*command]; !ok {
return fmt.Errorf("command should be one of [%s]", commandsMsg)
}
if *service == "dax" {
if endpoint == nil || len(*endpoint) == 0 {
return fmt.Errorf("endpoint should be set for 'dax' service")
}
}
return nil
}