Skip to content

Commit 7053070

Browse files
committed
add LogService and PM2Service to plugin cli module
1 parent 7b08589 commit 7053070

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

api/src/unraid-api/cli/cli.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { DeveloperCommand } from '@app/unraid-api/cli/developer/developer.comman
99
import { DeveloperQuestions } from '@app/unraid-api/cli/developer/developer.questions.js';
1010
import { LogService } from '@app/unraid-api/cli/log.service.js';
1111
import { LogsCommand } from '@app/unraid-api/cli/logs.command.js';
12-
import { PluginCommandModule } from '@app/unraid-api/cli/plugins/plugin.module.js';
12+
import { PluginCommandModule } from '@app/unraid-api/cli/plugins/plugin.cli.module.js';
1313
import { PM2Service } from '@app/unraid-api/cli/pm2.service.js';
1414
import { ReportCommand } from '@app/unraid-api/cli/report.command.js';
1515
import { RestartCommand } from '@app/unraid-api/cli/restart.command.js';

api/src/unraid-api/cli/plugins/plugin.module.ts renamed to api/src/unraid-api/cli/plugins/plugin.cli.module.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
import { Module } from '@nestjs/common';
22

3+
import { LogService } from '@app/unraid-api/cli/log.service.js';
34
import { DependencyService } from '@app/unraid-api/cli/plugins/dependency.service.js';
45
import {
56
InstallPluginCommand,
67
ListPluginCommand,
78
PluginCommand,
89
RemovePluginCommand,
910
} from '@app/unraid-api/cli/plugins/plugin.command.js';
11+
import { PM2Service } from '@app/unraid-api/cli/pm2.service.js';
12+
import { RestartCommand } from '@app/unraid-api/cli/restart.command.js';
1013

11-
const services = [DependencyService];
12-
const commands = [PluginCommand, ListPluginCommand, InstallPluginCommand, RemovePluginCommand];
14+
const services = [DependencyService, LogService, PM2Service];
15+
const commands = [
16+
PluginCommand,
17+
ListPluginCommand,
18+
InstallPluginCommand,
19+
RemovePluginCommand,
20+
RestartCommand,
21+
];
1322
const moduleResources = [...services, ...commands];
1423

1524
@Module({

0 commit comments

Comments
 (0)