egg
egg copied to clipboard
Cli service
Is it possible to run a service from cli?
class UserService extends Service {
async find(uid) {
const user = await this.ctx.db.query('select * from user where uid = ?', uid);
return user;
}
}
Something like this
yarn egg-cli user find 1
Reply please!
@atian25 Can you please reply?