id = "systemd"
name = "systemd"
homepage = "https://systemd.io/"
description = "A suite of basic building blocks for a Linux system."
executables = ["systemd", "systemctl"]
platforms = ["linux"]
[dotfiles]
paths = ["[configHome]/systemd/user/"]
secret = []
side_effect = false
[commands]
format = 1
label = "systemctl units"
description = "Inspect and control units. Choose a subcommand; machine-wide commands like reboot or daemon-reload are left out."
quality = "ai-draft"
base = "fig:systemctl"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/systemctl.ts"
license = "MIT"
[[commands.subcommand]]
path = ["status"]
label = "Unit status"
description = "Show runtime status of units."
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/systemctl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "units"
label = "Units or PIDs"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "user"
label = "User manager"
type = "boolean"
option = ["--user"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "full"
label = "Do not ellipsize"
type = "boolean"
option = ["--full", "-l"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "lines"
label = "Journal lines"
type = "integer"
option = ["--lines", "-n"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "status"
label = "Show status"
fields = ["units", "user", "full", "lines"]
required = []
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["units", "user", "full", "lines"]
[[commands.subcommand]]
path = ["start"]
label = "Start units"
description = "Start one or more units."
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/systemctl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "units"
label = "Units"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "user"
label = "User manager"
type = "boolean"
option = ["--user"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "no_block"
label = "Do not wait"
type = "boolean"
option = ["--no-block"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "start"
label = "Start"
fields = ["units", "user", "no_block"]
required = ["units"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["units", "user", "no_block"]
[[commands.subcommand]]
path = ["stop"]
label = "Stop units"
description = "Stop one or more units."
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/systemctl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "units"
label = "Units"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "user"
label = "User manager"
type = "boolean"
option = ["--user"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "no_block"
label = "Do not wait"
type = "boolean"
option = ["--no-block"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "stop"
label = "Stop"
fields = ["units", "user", "no_block"]
required = ["units"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["units", "user", "no_block"]
[[commands.subcommand]]
path = ["restart"]
label = "Restart units"
description = "Restart one or more units."
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/systemctl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "units"
label = "Units"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "user"
label = "User manager"
type = "boolean"
option = ["--user"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "no_block"
label = "Do not wait"
type = "boolean"
option = ["--no-block"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "restart"
label = "Restart"
fields = ["units", "user", "no_block"]
required = ["units"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["units", "user", "no_block"]
[[commands.subcommand]]
path = ["enable"]
label = "Enable units"
description = "Enable one or more unit files."
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/systemctl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "units"
label = "Units"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "now"
label = "Also start now"
type = "boolean"
option = ["--now"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "user"
label = "User manager"
type = "boolean"
option = ["--user"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "force"
label = "Override existing symlinks"
type = "boolean"
option = ["--force", "-f"]
effect = "overwrite"
sources = ["fig"]
[[commands.subcommand.task]]
id = "enable"
label = "Enable and start"
set = { now = [true] }
fields = ["units", "now", "user"]
required = ["units"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["units", "now", "user"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["force"]
[[commands.subcommand]]
path = ["list-units"]
label = "List units"
description = "List units currently in memory."
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/systemctl.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "pattern"
label = "Pattern"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "all"
label = "Include inactive"
type = "boolean"
option = ["--all", "-a"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "failed"
label = "Failed only"
type = "boolean"
option = ["--failed"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "type"
label = "Unit type"
type = "string"
option = ["--type", "-t"]
suggestions = [{ value = "service", label = "service" }, { value = "timer", label = "timer" }, { value = "socket", label = "socket" }, { value = "mount", label = "mount" }]
sources = ["fig"]
[[commands.subcommand.field]]
id = "user"
label = "User manager"
type = "boolean"
option = ["--user"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "failed"
label = "Failed units"
set = { failed = [true] }
lock = ["failed"]
fields = ["failed", "user"]
required = []
[[commands.subcommand.task]]
id = "list"
label = "List units"
fields = ["pattern", "all", "type", "user"]
required = []
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["pattern", "all", "failed", "type", "user"]