Skip to content

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

Description

@lpil

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions