Add tasks flow for the command

This commit is contained in:
Mohammad Fares
2018-10-14 22:03:22 +03:00
parent 506e1de49e
commit b2baae6e98

View File

@@ -49,6 +49,23 @@ function command(argv) {
require('./init.js').handler();
}
di.Flowa.run({
// Get a token for uploading recordings
getToken: getToken,
// Ask the user to enter meta data about the recording
getMeta: getMeta,
// Upload the recording
shareRecording: shareRecording
}, argv).then(function(context) {
done(context.shareRecording);
}).catch(di.errorHandler);
}
////////////////////////////////////////////////////