Skip to content

Commit

Permalink
chore(ctl): added jsdoc in ctl get unit
Browse files Browse the repository at this point in the history
  • Loading branch information
chyzwar committed Sep 20, 2024
1 parent 0c87eed commit 8c9b5aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ctl/src/ctl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 8c9b5aa

Please sign in to comment.