#!/usr/bin/env node var argument = process.argv[2]; var argumentSec = process.argv[3]; var createPage = require('../lib/commands/page'); var createModule = require('../lib/commands/module'); var createTheme = require('../lib/commands/theme'); var createMixin = require('../lib/commands/mixin'); var install = require('../lib/commands/install'); var show = require('../lib/commands/show'); var unused = require('../lib/commands/unused'); var help = require('../lib/commands/help'); var explore = require('../lib/commands/explore'); switch (true) { case (argument === 'install'): install(); break; case (argument === 'page'): createPage(); break; case (argument === 'module'): createModule(); break; case (argument === 'theme'): createTheme(); break; case (argument === 'mixin'): createMixin(); break; case (argument === 'help'): help(); break; case (argument === 'show'): show(argumentSec); break; case (argument === 'unused'): unused(argumentSec); break; case (argument === 'explore'): explore(); break; default: help(); break; }