Add "project" field to cli introspection data (#43430)

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-08-21 11:27:45 +02:00
committed by GitHub
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ static int verb_transient_settings(int argc, char *argv[], uintptr_t _data, void
COMMAND(
"systemd-analyze\0",
.abstract = "Profile systemd, show unit dependencies, check unit files.",
"Profile systemd, show unit dependencies, check unit files.",
.man_pages = "systemd-analyze.1\0",
.pager_flags = &arg_pager_flags,
);
+1
View File
@@ -607,6 +607,7 @@ static int command_build_json(
r = sd_json_buildo(
ret,
SD_JSON_BUILD_PAIR_VARIANT("names", names),
SD_JSON_BUILD_PAIR_STRING("project", "systemd"),
SD_JSON_BUILD_PAIR_STRING("version", PROJECT_VERSION_FULL),
SD_JSON_BUILD_PAIR_STRV("features", features),
SD_JSON_BUILD_PAIR_CONDITION(
+1 -1
View File
@@ -181,7 +181,7 @@ static int print_status_info(const StatusInfo *i) {
COMMAND(
"timedatectl\0",
.abstract = "Query or change system time and date settings.",
"Query or change system time and date settings.",
.man_pages = "timedatectl.1\0",
.pager_flags = &arg_pager_flags,
);