{"size": 426, "ext": "js", "max_stars_repo_path": "commands/stopall.js", "max_stars_repo_name": "uhray/uhd", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "commands/stopall.js", "max_issues_repo_name": "uhray/uhd", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "commands/stopall.js", "max_forks_repo_name": "uhray/uhd", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.0588235294, "max_line_length": 49, "alphanum_fraction": 0.6549295775}
var _ = require('lodash'),
    child = require('child_process'),
    self = exports = module.exports = {};

self.description = 'stops all docker containers';
self.example = 'udh stopall';

self.help  = function() {
  console.log('stopall: %s\n', self.description);
  console.log(self.example);
}

self.go = function(argv) {
  child.execSync('docker stop $(docker ps -aq)');
  child.execSync('docker rm $(docker ps -a -q)');
}
