open-research / sumatra

http://neuralensemble.org/sumatra/
BSD 2-Clause "Simplified" License
127 stars 48 forks source link

print script content in CLI #342

Closed babsey closed 7 years ago

babsey commented 8 years ago

With this PR user can review the script content loaded from git. To print the script content user has to select a record by label

sample command: smt script <label>

It displays the name of the script, the git version and the content

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.2%) to 72.622% when pulling f836377a81ad5d21235ee47dd7132c739cd6dfd8 on babsey:CLI_script_content into 9341bf6f288c54433e1097c220c06db7ec8d47f1 on open-research:master.

apdavison commented 7 years ago

I like this feature, and have merged the PR, but I would like to generalize it to all record fields by having an smt view command - see #364 i.e. smt view --script --version <label> or smt view -sv <label> would be equivalent to smt script <label>