(options = {})
| 29 | } |
| 30 | |
| 31 | function loopId(options = {}) { |
| 32 | const type = slugify(options.type || 'loop'); |
| 33 | const source = options.title || options.command || options.goal || options.template || type; |
| 34 | const stamp = nowIso(options).replace(/[:.]/g, '-'); |
| 35 | return options.id || `${type}-${slugify(source)}-${stamp}`; |
| 36 | } |
| 37 | |
| 38 | function relativeLoopPath(id) { |
| 39 | return path.join('.planning', 'loops', `${id}.json`).replace(/\\/g, '/'); |
no test coverage detected