fix(action): correct message about config reload
The daemon already has automatic config file watching and reloads changes without requiring a restart. Updated action handler messages to correctly reflect this behavior. Changed: - 'Restart service to apply changes: nupst service restart' → 'Changes saved and will be applied automatically' The config file watcher (daemon.ts:986) uses Deno.watchFs() to monitor /etc/nupst/config.json and automatically calls reloadConfig() when changes are detected. No restart needed.
This commit is contained in:
@@ -152,10 +152,7 @@ export class ActionHandler {
|
|||||||
|
|
||||||
logger.log('');
|
logger.log('');
|
||||||
logger.success(`Action added to ${targetType} ${targetName}`);
|
logger.success(`Action added to ${targetType} ${targetName}`);
|
||||||
logger.log('');
|
logger.log(` ${theme.dim('Changes saved and will be applied automatically')}`);
|
||||||
logger.log(
|
|
||||||
` ${theme.dim('Restart service to apply changes:')} ${theme.command('nupst service restart')}`,
|
|
||||||
);
|
|
||||||
logger.log('');
|
logger.log('');
|
||||||
} finally {
|
} finally {
|
||||||
rl.close();
|
rl.close();
|
||||||
@@ -241,10 +238,7 @@ export class ActionHandler {
|
|||||||
` ${theme.dim('Thresholds:')} Battery: ${removedAction.thresholds.battery}%, Runtime: ${removedAction.thresholds.runtime}min`,
|
` ${theme.dim('Thresholds:')} Battery: ${removedAction.thresholds.battery}%, Runtime: ${removedAction.thresholds.runtime}min`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
logger.log('');
|
logger.log(` ${theme.dim('Changes saved and will be applied automatically')}`);
|
||||||
logger.log(
|
|
||||||
` ${theme.dim('Restart service to apply changes:')} ${theme.command('nupst service restart')}`,
|
|
||||||
);
|
|
||||||
logger.log('');
|
logger.log('');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(
|
logger.error(
|
||||||
|
Reference in New Issue
Block a user