diff --git a/dm/dm.go b/dm/dm.go index 3952f669b..f1c417a19 100644 --- a/dm/dm.go +++ b/dm/dm.go @@ -36,29 +36,28 @@ import ( ) var ( - // TODO(jackgr): Implement reading a template from stdin - //stdin = flag.Bool("stdin", false, "Reads a template from the standard input") - properties = flag.String("properties", "", "Properties to use when deploying a type (e.g., --properties k1=v1,k2=v2)") - type_registry = flag.String("registry", "kubernetes/deployment-manager", "Github based type registry [owner/repo]") - service = flag.String("service", "http://localhost:8001/api/v1/proxy/namespaces/default/services/manager-service:manager", "URL for deployment manager") - binary = flag.String("binary", "../expandybird/expansion/expansion.py", "Path to template expansion binary") + stdin = flag.Bool("stdin", false, "Reads a configuration from the standard input") + properties = flag.String("properties", "", "Properties to use when deploying a template (e.g., --properties k1=v1,k2=v2)") + template_registry = flag.String("registry", "kubernetes/deployment-manager/templates", "Github based template registry (owner/repo[/path])") + service = flag.String("service", "http://localhost:8001/api/v1/proxy/namespaces/default/services/manager-service:manager", "URL for deployment manager") + binary = flag.String("binary", "../expandybird/expansion/expansion.py", "Path to template expansion binary") ) var commands = []string{ - "expand \t\t\t Expands the supplied template(s)", - "deploy \t\t\t Deploys the supplied type or template(s)", + "expand \t\t\t Expands the supplied configuration(s)", + "deploy \t\t\t Deploys the named template or the supplied configuration(s)", "list \t\t\t Lists the deployments in the cluster", "get \t\t\t Retrieves the supplied deployment", "delete \t\t\t Deletes the supplied deployment", - "update \t\t\t Updates a deployment using the supplied template(s)", + "update \t\t\t Updates a deployment using the supplied configuration(s)", "deployed-types \t\t Lists the types deployed in the cluster", - "deployed-instances \t Lists the instances of the supplied type deployed in the cluster", - "types \t\t\t Lists the types in the current registry", - "describe \t\t Describes the supplied type in the current registry", + "deployed-instances \t Lists the instances of the named type deployed in the cluster", + "templates \t\t Lists the templates in a given template registry", + "describe \t\t Describes the named template in a given template registry", } var usage = func() { - message := "Usage: %s [] ( | | (