You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/05/17 11:27:51 UTC

[GitHub] [cloudstack-cloudmonkey] rhtyd commented on a change in pull request #79: Validate arguments passed while setting configuration

rhtyd commented on a change in pull request #79:
URL: https://github.com/apache/cloudstack-cloudmonkey/pull/79#discussion_r633449464



##########
File path: config/config.go
##########
@@ -74,6 +74,18 @@ type Config struct {
 	ActiveProfile *ServerProfile
 }
 
+func GetOutputFormats() []string {
+ return []string {"column", "csv", "json", "table", "text"}
+}
+
+func CheckIfValuePresent(dataset []string, element string) bool {

Review comment:
       thnx, I would have loved if Go had a std library method for this. :facepalm: 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org