{"size": 820, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "KrystianJonca/pc-performance", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/index.js", "max_issues_repo_name": "KrystianJonca/pc-performance", "max_issues_repo_issues_event_min_datetime": "2018-10-12T16:47:37.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T20:24:03.000Z", "max_forks_repo_path": "src/index.js", "max_forks_repo_name": "KrystianJonca/pc-performance", "max_forks_repo_forks_event_min_datetime": "2018-10-12T16:44:24.000Z", "max_forks_repo_forks_event_max_datetime": "2018-10-12T16:44:24.000Z"}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": 1, "avg_line_length": 31.5384615385, "max_line_length": 67, "alphanum_fraction": 0.6646341463}
import program from 'commander'
import chalk from 'chalk'
import helpers from './helpers'
import { version } from '../package'

program
  .version(version, '-v, --version')
  .option('-o, --os', 'Display OS information')
  .option('-c, --cpu', 'Display CPU information')
  .option('-g, --gpu', 'Display GPU information')
  .option('-m, --moba', 'Display MOBA information')
  .option('-b, --battery', 'Display Battery information')
  .option('-me, --memory', 'Display Memory information')
  .option('-d, --disk', 'Display Disk information')
  .option('-n, --net', 'Display Internet speed information')
  .parse(process.argv)

helpers.createMessage(program).then(msg => {
  console.log(msg)
}).catch(err => {
  console.log(chalk`{bold.red Something went wrong! :( \n ${err}}`)
  process.exit(1)
})

export default program
