mirror of https://github.com/codefeathers/mark
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
423 B
22 lines
423 B
const CMDjs = require('@codefeathers/cmd-js/index');
|
|
const installer = require('./lib/installer');
|
|
const { help, login, logout, commit } = require('./lib/commands.js');
|
|
|
|
const mark = input => {
|
|
const args = input.args;
|
|
if (args && args.length === 0) {
|
|
help();
|
|
}
|
|
|
|
const cmd = new CMDjs(
|
|
args,
|
|
)
|
|
|
|
cmd
|
|
.use( ['-h', '--help'], help )
|
|
.use( 'login', login )
|
|
.use( 'logout', logout )
|
|
|
|
}
|
|
|
|
module.exports = mark;
|