fix(core): fix lint/type issues and small refactors

This commit is contained in:
2026-01-29 17:46:23 +00:00
parent 165c7d29bb
commit cb34ae5041
15 changed files with 39 additions and 20 deletions

View File

@@ -1,4 +1,3 @@
import process from 'node:process';
import { execSync } from 'node:child_process';
import { Nupst } from '../nupst.ts';
import { logger } from '../logger.ts';

View File

@@ -1,4 +1,3 @@
import process from 'node:process';
import { Nupst } from '../nupst.ts';
import { type ITableColumn, logger } from '../logger.ts';
import { theme } from '../colors.ts';

View File

@@ -126,7 +126,7 @@ export class ServiceHandler {
/**
* Update NUPST from repository and refresh systemd service
*/
public async update(): Promise<void> {
public update(): void {
try {
// Check if running as root
this.checkRootAccess(

View File

@@ -5,7 +5,7 @@ import { type ITableColumn, logger } from '../logger.ts';
import { theme } from '../colors.ts';
import * as helpers from '../helpers/index.ts';
import type { ISnmpConfig, IUpsStatus as ISnmpUpsStatus, TUpsModel } from '../snmp/types.ts';
import type { INupstConfig, IUpsConfig, IUpsStatus } from '../daemon.ts';
import type { INupstConfig, IUpsConfig } from '../daemon.ts';
import type { IActionConfig } from '../actions/base-action.ts';
/**