(cliFlagsOnly bool)
| 237 | } |
| 238 | |
| 239 | func ErrorClusterAccessConfigRequired(cliFlagsOnly bool) error { |
| 240 | message := "" |
| 241 | if cliFlagsOnly { |
| 242 | message = "please provide the name and region of the cluster using the CLI flags (e.g. via `--name` and `--region`)" |
| 243 | } else { |
| 244 | message = fmt.Sprintf("please provide a cluster configuration file which specifies `%s` and `%s` (e.g. via `--config cluster.yaml`) or use the CLI flags to specify the cluster (e.g. via `--name` and `--region`)", clusterconfig.ClusterNameKey, clusterconfig.RegionKey) |
| 245 | } |
| 246 | return errors.WithStack(&errors.Error{ |
| 247 | Kind: ErrClusterAccessConfigRequired, |
| 248 | Message: message, |
| 249 | }) |
| 250 | } |
| 251 | |
| 252 | func ErrorShellCompletionNotSupported(shell string) error { |
| 253 | return errors.WithStack(&errors.Error{ |
no test coverage detected