(cmd *cobra.Command, id, title string)
| 176 | } |
| 177 | |
| 178 | func resolveTaskContent(cmd *cobra.Command, id, title string) (string, error) { |
| 179 | if addTemplate != "" { |
| 180 | return buildFromTemplate(cmd, id, title) |
| 181 | } |
| 182 | return buildTaskFileContent(id, title), nil |
| 183 | } |
| 184 | |
| 185 | // buildFromTemplate resolves a template, renders it with variables, and applies CLI flag overrides. |
| 186 | func buildFromTemplate(cmd *cobra.Command, id, title string) (string, error) { |
no test coverage detected