@codedungeon/gunner
Version:
Node CLI Framework
20 lines (18 loc) • 783 B
JavaScript
/*-------------------------------------------------------------------------------------------
* Copyright (c) 2018-2021 Mike Erickson / Codedungeon. All rights reserved.
* Licensed under the MIT license. See LICENSE in the project root for license information.
* -----------------------------------------------------------------------------------------*/
module.exports = {
name: 'say-hello',
description: 'Say hello to my little friend!',
usage: 'Do something cool, after all this is your command!',
flags: {
name: { aliases: ['n'], description: 'Hello Name' },
},
execute(toolbox) {
let name = toolbox.strings.titleCase(toolbox.arguments.name || 'world')
console.log()
toolbox.print.success(`Hello ${name}!`, 'SUCCESS')
console.log('')
},
}