How to use
First, let's install @ddot/ddot-cli
Then, export default a function
test-plugin
export default function create(api, opt) {
// command name
const command = '333';
// command describe
api.cmd[command].describe = 'describe';
api.cmd[command].apply = function apply() {
// do somethings
};
}Then, config .ddotrc.ts file
.ddotrc.ts
export default {
plugins: ['./test-plugin']
}Last, run command
$ ddotLast updated
Was this helpful?