dnotations

module
v0.0.0-...-c1c7863 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: MIT

README

dnotations

A simple tool for organizing your SystemD units with annotations via comment headers.

Usage

First, add a comment-header to the SystemD unit file that you want to keep track of metadata for, like so:

# annotations:
#   part-of: dnotationstest 
#   component: absolute-unit 
#   version: 0.0.0
#   managed-by: peder
#

[Unit]
Description="My absolute unit"
...

Units with such annotations can be queried with the 'list' command:

>>> dens list | python3 -m json.tool 
{
    "units": [
        {
            "part-of": "dnotationstest",
            "component": "absolute-unit",
            "version": "0.0.0",
            "managed-by": "peder",
            "hostname": ""
        }
    ]
}

Use this to keep track of what your units are for, and what they are doing. Makes managing multiple interrelated units a bit easier!

Directories

Path Synopsis
cmd
internal
cli
Data models for creating JSON output.
Data models for creating JSON output.
pkg
io
Load and parse dnotated units.
Load and parse dnotated units.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL