diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-19 09:36:14 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-19 09:36:14 +0200 |
| commit | d273bc6c0da908f7d70d091e59044e3b4a8aabc4 (patch) | |
| tree | b0c0afb5e0b0fcf487f58a9a7f6ba03aabf3d41d /app | |
| parent | 5d5aaf5618860f0c9bc48763464cf74a7ab0b193 (diff) | |
stub in results
Diffstat (limited to 'app')
| -rw-r--r-- | app/client/modules/pix2pixhd/views/pix2pixhd.results.js | 1 | ||||
| -rw-r--r-- | app/relay/runner.js | 22 |
2 files changed, 22 insertions, 1 deletions
diff --git a/app/client/modules/pix2pixhd/views/pix2pixhd.results.js b/app/client/modules/pix2pixhd/views/pix2pixhd.results.js index 45caa84..dcbbfad 100644 --- a/app/client/modules/pix2pixhd/views/pix2pixhd.results.js +++ b/app/client/modules/pix2pixhd/views/pix2pixhd.results.js @@ -47,7 +47,6 @@ class Pix2pixHDResults extends Component { <h1>Pix2PixHD Results</h1> </div> <div class='rows params renders'> - {renders} </div> </div> ) diff --git a/app/relay/runner.js b/app/relay/runner.js index 531bf12..54f5a94 100644 --- a/app/relay/runner.js +++ b/app/relay/runner.js @@ -140,6 +140,12 @@ export function run_system_command(cmd, cb) { case 'du': disk_usage(cmd, cb) break + case 'list_results': + list_results(cmd, cb) + break + case 'dir_to_video': + dir_to_video(cmd, cb) + break default: cb({ error: 'no such command' }) break @@ -178,6 +184,22 @@ export function list_directory(opt, cb) { }) } +export function list_results(opt, cb) { + // list the contents of the results directory for the module + // filter out non-directories + // for each directory + // list it and count the files and sum their sizes and print the first filename and `identify` it... + cb([]) +} +export function dir_to_video(opt, db) { + // input: the path (in results/) you want as a video + // output: the path (in renders/) that contains the video + // run the dir to video script with CWD as the directory and first input as ../renders plus the directory name + // list the file in renders... + cb([]) +} + + export function disk_usage(opt, cb) { if (!opt.module || ! modules[opt.module]) { cb([]) |
