(schema *schema.Schema, action *schema.Action)
| 181 | } |
| 182 | |
| 183 | func outputCustomCommands(schema *schema.Schema, action *schema.Action) (string, error) { |
| 184 | entry := ActionTemplateEntry{schema, action} |
| 185 | buf := new(bytes.Buffer) |
| 186 | tmpl, _ := template.New("schema").Parse(actionTemplate) |
| 187 | tmpl.Execute(buf, entry) |
| 188 | return buf.String(), nil |
| 189 | } |
| 190 | |
| 191 | // NewGohanClientCLI GohanClientCLI constructor |
| 192 | func NewGohanClientCLI(opts *GohanClientCLIOpts) (*GohanClientCLI, error) { |
no test coverage detected