feat: add basic forked shell record to in/out files

This commit is contained in:
2026-03-18 11:14:06 +00:00
parent d331b0825d
commit 081e338744
9 changed files with 386 additions and 38 deletions
+4
View File
@@ -1,6 +1,7 @@
package cmd
import (
"errors"
"path/filepath"
"miro/internal/miro"
@@ -17,6 +18,9 @@ func newRecordCommand() *cobra.Command {
path := filepath.Clean(args[0])
createdPath, err := miro.Record(path)
if err != nil {
if errors.Is(err, miro.ErrRecordingDiscarded) {
return nil
}
return err
}