Update entry point to use queue
#!/usr/bin/env node
'use strict';

// Load base requirements
const program = require('commander'),
      dotenv = require('dotenv').config(),
      path = require('path');

// Load our libraries
const utils = require('./libs/utils'),
      logger = require('./libs/log'),
      i18n = require('./libs/locale'),
      queue = require('./libs/queue'),
      task = require('./libs/task');

// Create new task
task.create({
  "name": "Two Brothers, One Impala",
  "directory": path.resolve('test/data/task/metadata'),
  "type": "show",
  "seasons": [1, 2],
  "options": {
    "preset": "slow",
    "video" : {
      "bitrate": 3500,
      "quality": 0
    }
   }
}).then((data) => {
  return queue.add(data);

}).catch((err) => {
  console.log(err);
  process.exit(0);
});

#!/usr/bin/env node
'use strict';

// Load base requirements
const program = require('commander'),
      dotenv = require('dotenv').config(),
      path = require('path');

// Load our libraries
const utils = require('./libs/utils'),
      logger = require('./libs/log'),
      i18n = require('./libs/locale'),
      queue = require('./libs/queue'),
      task = require('./libs/task');

// Create new task
task.create({
  "name": "Two Brothers, One Impala",
  "directory": path.resolve('test/data/task/metadata'),
  "type": "show",
  "seasons": [1, 2],
  "options": {
    "preset": "slow",
    "video" : {
      "bitrate": 3500,
      "quality": 0
    }
   }
}).then((data) => {
  
  console.log('Task Object:');
  console.log(data);

  console.log('\n\n');
  
  console.log('Job Object:');
  console.log(data.jobs[0]);

  process.exit(0);

}).catch((err) => {
  console.log(err);
  process.exit(0);
});
