X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/c5cbbd3835ccd509179504cdf7d5e74356d7dca5..2f579cf4c0d8ff95af78103783c7ca8f951cc797:/bin/blog.js diff --git a/bin/blog.js b/bin/blog.js index dc256ee..3f5db43 100755 --- a/bin/blog.js +++ b/bin/blog.js @@ -1,10 +1,7 @@ #!/usr/bin/env node -'use strict'; - -const Package = require('../package.json'); -const Config = require('../config/config'); -const Blog = require('..'); -const Minimist = require('minimist'); +import Config from '../config/config.js'; +import Blog from '../lib/blog.js'; +import Minimist from 'minimist'; const internals = { blog: new Blog(Config), @@ -34,7 +31,7 @@ const internals = { const value = parsedArguments[argument]; if (argument === 'version') { - console.log(Package.version); + console.log('6.0.0'); return; } @@ -121,8 +118,8 @@ const internals = { _printUsage() { console.error('\nUsage:\n'); - console.error('blog --add path/to/blog_post\t\t(creates new blog post)'); - console.error('blog --update path/to/blog_post\t\t(updates latest blog post)'); + console.error('blog --add \t\t(creates new blog post)'); + console.error('blog --update \t\t(updates latest blog post)'); console.error('blog --generate \t\t\t(generates the blog assets)'); console.error('blog --publish \t\t(publishes the blog to an S3 bucket)'); console.error('blog --publish-archive \t(publishes the archive to a remote host)');