feat: cli Commands

This commit is contained in:
Eli Bosley
2025-01-17 14:04:08 -05:00
parent 7ceac1b184
commit 7fa849d2a0

View File

@@ -9,6 +9,7 @@ import { execa } from 'execa';
import { getBannerPathIfPresent, getCasePathIfPresent } from '@app/core/utils/images/image-file-helpers';
import { getters } from '@app/store/index';
import { ReportCommand } from '@app/unraid-api/cli/report.command';
import { LogService } from '@app/unraid-api/cli/log.service';
@Injectable()
export class RestService {
@@ -16,7 +17,7 @@ export class RestService {
async saveApiReport(pathToReport: string) {
try {
const reportCommand = new ReportCommand();
const reportCommand = new ReportCommand(new LogService());
const apiReport = await reportCommand.report({ json: true, verbose: 2, raw: false });
this.logger.debug('Report object %o', apiReport);