mirror of
https://github.com/dilllxd/gitfolio.git
synced 2024-08-14 22:28:09 +00:00
Formatted some files
This commit is contained in:
parent
c247ead4f4
commit
85835e6167
7 changed files with 224 additions and 252 deletions
|
@ -5,29 +5,13 @@ const program = require("commander");
|
|||
|
||||
process.env.OUT_DIR = process.env.OUT_DIR || process.cwd();
|
||||
|
||||
const
|
||||
{
|
||||
buildCommand
|
||||
} = require("../build");
|
||||
const
|
||||
{
|
||||
updateCommand
|
||||
} = require("../update");
|
||||
const
|
||||
{
|
||||
uiCommand
|
||||
} = require("../ui");
|
||||
const
|
||||
{
|
||||
runCommand
|
||||
} = require("../run");
|
||||
const
|
||||
{
|
||||
version
|
||||
} = require("../package.json");
|
||||
const { buildCommand } = require("../build");
|
||||
const { updateCommand } = require("../update");
|
||||
const { uiCommand } = require("../ui");
|
||||
const { runCommand } = require("../run");
|
||||
const { version } = require("../package.json");
|
||||
|
||||
function collect(val, memo)
|
||||
{
|
||||
function collect(val, memo) {
|
||||
memo.push(val);
|
||||
return memo;
|
||||
}
|
||||
|
@ -61,8 +45,7 @@ program
|
|||
.option("-p, --port [port]", "provide a port for localhost, default is 3000")
|
||||
.action(runCommand);
|
||||
|
||||
program.on("command:*", () =>
|
||||
{
|
||||
program.on("command:*", () => {
|
||||
console.log("Unknown Command: " + program.args.join(" "));
|
||||
program.help();
|
||||
});
|
||||
|
@ -72,4 +55,4 @@ program
|
|||
.usage("<command> [options]")
|
||||
.parse(process.argv);
|
||||
|
||||
if (program.args.length === 0) program.help();
|
||||
if (program.args.length === 0) program.help();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue