mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-06 22:19:25 +08:00
* 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>
13 lines
223 B
TypeScript
13 lines
223 B
TypeScript
import Application from '../application';
|
|
|
|
export default (app: Application) => {
|
|
app
|
|
.command('restart')
|
|
.ipc()
|
|
.action(async (...cliArgs) => {
|
|
await app.restart({
|
|
cliArgs,
|
|
});
|
|
});
|
|
};
|