mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
* test: string includes operator * chore: operator test coverage * chore: database utils test * chore: acl test * chore: no permission error * chore: code * fix: run coverage test * chore: datasource test * chore: datasource test * chore: datasource test * chore: datasource test * chore: datasource test * chore: datasource * fix: build * chore: plugin data source manager test * chore: acl test * chore: query interface test * chore: ui schema storage test * chore: save template test * chore: ui schema insert position action * chore: ignore migration * chore: plugin acl test * chore: ignore command in coverage * chore: ignore * chore: remove db2resource * chore: ignore migration * chore: ipc server test * chore: database test * chore: database api comments * chore: value parser test * chore: build * chore: backup & restore test * chore: plugin manager test * chore: pm * chore: pm ignore * chore: skip migration * chore: remove unused code * fix: import * chore: remove unused code * chore: remove unused code * fix: action test * chore: data wrapping middleware * fix: build * fix: build * fix: build * test: fix T-4105 * chore: test * fix: data-source-manager test * fix: sql collection test * fix: test * fix: test * fix: test * fix: typo * chore: datasource manager test * chore: console.log --------- Co-authored-by: xilesun <2013xile@gmail.com>
20 lines
417 B
TypeScript
20 lines
417 B
TypeScript
/* istanbul ignore file -- @preserve */
|
|
|
|
import Application from '../application';
|
|
|
|
export default (app: Application) => {
|
|
app
|
|
.command('restart')
|
|
.ipc()
|
|
.action(async (...cliArgs) => {
|
|
if (!(await app.isStarted())) {
|
|
app.log.info('app has not started');
|
|
return;
|
|
}
|
|
await app.restart({
|
|
cliArgs,
|
|
});
|
|
app.log.info('app has been restarted');
|
|
});
|
|
};
|