Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--save flag for exec-stdin and exec-file that record code and timestamp. #7

Open
lpil opened this issue Jan 20, 2017 · 2 comments
Open

Comments

@lpil
Copy link
Owner

lpil commented Jan 20, 2017

Proposal

Given a live coding performance where the user is using echo $CODE | sonic-pi-tool eval-stdin --save some/dir

at the end of the performance the given directory would contain one file for each time code was evaled, with timestamps, so the performance can be replayed.

some/dir
├── sonic-pi-code-20170101170456.rb
├── sonic-pi-code-20170101170503.rb
└── ... etc ...

This could then be used with a replay command to be implemented later.

Discussion

  • Is --save a good name?
  • Is the code in a file and timestamp in the filename enough info? Or should we save a JSON blob so that more data can be stored?
@iamjonny
Copy link

Is this working yet? Great idea, I'd had a similar one with the git autosave commit log but don't have the skills yet to make it work, or test to see if already accurate (or any delays introduced during replay of committed runs at commit_timestamps

👍👍👍👍👍

@lpil
Copy link
Owner Author

lpil commented Oct 15, 2023

Nobody is working this as far as I'm aware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants