summaryrefslogtreecommitdiff
path: root/app/relay/runner.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/relay/runner.js')
-rw-r--r--app/relay/runner.js22
1 files changed, 22 insertions, 0 deletions
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([])