You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thumbsup/bin/thumbsup.js

20 lines
580 B
JavaScript

#!/usr/bin/env node
var program = require('commander');
var index = require('../src/index');
program
.version('0.0.1')
11 years ago
.option('-i, --input <path>', 'Path to the folder with all photos/videos')
.option('-o, --output <path>', 'Output path for the static website')
.option('-t, --thumb-size [pixels]', 'Thumbnail size in pixels (square)')
.option('-l, --large-size [pixels]', 'Fullscreen size in pixels (square)')
.parse(process.argv);
index.build({
input: program.input,
output: program.output,
11 years ago
thumbSize: program.thumbSize,
largeSize: program.largeSize
});