mirror of
https://github.com/ION606/ion-cli.git
synced 2026-05-14 22:16:56 +00:00
12 lines
366 B
JavaScript
12 lines
366 B
JavaScript
import chalk from "chalk"
|
|
const commandList = ['anime <name="string", option="string">']
|
|
|
|
export default function help(subcommand = []) {
|
|
if (subcommand.length != 0) {
|
|
console.log(chalk.green(commandList[commandList.indexOf(subcommand)]))
|
|
} else {
|
|
for (const i of commandList) {
|
|
console.log(chalk.cyanBright(i));
|
|
}
|
|
}
|
|
} |