Ergogen epoch
This commit is contained in:
commit
874087dce9
7 changed files with 431 additions and 0 deletions
22
absolem.js
Normal file
22
absolem.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
const fs = require('fs-extra')
|
||||
const path = require('path')
|
||||
const yaml = require('js-yaml')
|
||||
|
||||
const args = require('yargs')
|
||||
.option('config', {
|
||||
alias: 'c',
|
||||
demandOption: true,
|
||||
describe: 'Config yaml file',
|
||||
type: 'string'
|
||||
})
|
||||
.option('output', {
|
||||
alias: 'o',
|
||||
default: path.resolve('output'),
|
||||
describe: 'Output folder',
|
||||
type: 'string'
|
||||
})
|
||||
.argv
|
||||
|
||||
const config = yaml.load(fs.readFileSync(args.c).toString())
|
||||
|
||||
console.log(config)
|
Loading…
Add table
Add a link
Reference in a new issue