Simple gcloud command builder with helper functions
| Constructor and description |
|---|
GCloudCommandBuilder
() |
GCloudCommandBuilder
(java.lang.String... parts) |
| Type | Name and description |
|---|---|
GCloudCommandBuilder |
add(java.lang.String... parts) |
GCloudCommandBuilder |
addBoolOption(java.lang.String optionName, java.lang.Boolean value)Convenience method to add an option if value is true |
GCloudCommandBuilder |
addOption(java.lang.String optionName, java.lang.String value)Convenience method to add non-null values as options to a gcloud command in the format "--optionName=value", does not escape special characters |
java.lang.String[] |
buildCommand()Returns a command String[] and adds gcloud if necessary |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Convenience method to add an option if value is true
Convenience method to add non-null values as options to a gcloud command in the format "--optionName=value", does not escape special characters
Returns a command String[] and adds gcloud if necessary