Add "project" field to cli introspection data (#43430)
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user