feat: add miro record as mkdir -p

This commit is contained in:
2026-03-16 22:04:02 +00:00
parent 94bd14f467
commit f37548b56b
3 changed files with 49 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package cmd
import (
"path/filepath"
"miro/internal/miro"
"miro/internal/output"
)
func runRecord(args []string) int {
if len(args) != 1 {
output.Println("record requires exactly one path")
return 1
}
path := filepath.Clean(args[0])
createdPath, err := miro.Record(path)
if err != nil {
output.Printf("%v\n", err)
return 1
}
output.Println(createdPath)
return 0
}