Systemd.UnitFile.Value (systemd v0.1.0-pre.0)

Copy Markdown View Source

Helpers for systemd directive values.

The unit-file parser preserves directive values as raw strings. These helpers provide focused value-level parsing for callers that need shell-like words or simple quoted strings without baking value semantics into every directive.

Summary

Functions

Splits a directive value into whitespace-separated words.

Types

word()

@type word() :: String.t()

Functions

words(value)

@spec words(String.t()) :: {:ok, [word()]} | {:error, term()}

Splits a directive value into whitespace-separated words.

Double and single quotes group whitespace. A backslash escapes the following character outside single quotes.