ChengLei Shao 630c6f2d79
chore(command): set command handle by ipc server or not (#2660)
* chore: tmp commit

* feat: app command

* chore: return error when not handle by ipc server

* chore: command handle by ipc server

* chore: api name

* Update pm.ts

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-09-19 14:39:54 +08:00

13 lines
223 B
TypeScript

import Application from '../application';
export default (app: Application) => {
app
.command('restart')
.ipc()
.action(async (...cliArgs) => {
await app.restart({
cliArgs,
});
});
};