From 8c9b5aaa16a77b10fdcc4d913df638227c1a5110 Mon Sep 17 00:00:00 2001 From: chyzwar Date: Fri, 20 Sep 2024 19:59:53 +0200 Subject: [PATCH] chore(ctl): added jsdoc in ctl get unit --- packages/ctl/src/ctl.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/ctl/src/ctl.ts b/packages/ctl/src/ctl.ts index fe7a65f..19dc8d8 100644 --- a/packages/ctl/src/ctl.ts +++ b/packages/ctl/src/ctl.ts @@ -30,6 +30,9 @@ const getPath = (name: string, type: string) => { : `/etc/containers/systemd/${name}.${type}`; }; +/** + * Create Unit from filesystem + */ function getUnit(unitName: string, type: string = getType(unitName)): Unit | undefined { const name = getName(unitName); const path = `/etc/systemd/system/${name}.${type}`;