fix(shotcut): add auto-save option for one-shot mode#15
Conversation
Add -s/--save flag to automatically save project after each mutation command. This fixes the issue where one-shot commands don't persist changes because each command runs in a new process with a fresh session. Usage: shotcut-cli --project edit.mlt -s timeline add-track --type video # Now auto-saves after adding the track Without -s flag, behavior is unchanged (explicit save required).
|
If the |
|
Nice catch! Can we improve HARNESS.md to solve this fundamentally? I'll merge this first. |
@jarrodcolburn This keeps current behavior but makes the design and trade-offs explicit, and also notes the potential future direction of defaulting to auto-save for one-shot with a --no-save opt-out if that better matches real-world usage. |
Summary
Add
-s/--saveflag to automatically save project after each mutation command. This fixes the issue where one-shot commands don't persist changes because each command runs in a new process with a fresh session.Changes
auto_saveglobal flag to CLI group-s/--saveoption to the main CLI_auto_save_callback()that runs after each commandUsage
Test
Verified the fix works:
-sflagFixes #14