feat(daemon,registry): list lowered actions and expose binary variant detail
This commit is contained in:
1 parent
69d1a8d274
commit
34fe148eb4
10 files changed
+252
-3
No files matched your search
@@ -1567,6 +1567,9 @@ int execute_daemon_command(std::string_view sub, const DaemonCmdOptions &opts) {
|
||||
request_json = std::format(R"({{"op":"graph","profile":{},"format":{}}})",
|
||||
Util::json_quote(opts.profile_arg),
|
||||
Util::json_quote(opts.graph_format_arg));
|
||||
} else if (sub == "actions") {
|
||||
request_json = std::format(R"({{"op":"actions","profile":{},"limit":{}}})",
|
||||
Util::json_quote(opts.profile_arg), opts.limit_arg);
|
||||
} else if (sub == "target_info") {
|
||||
if (!opts.target_arg || opts.target_arg->empty()) {
|
||||
std::cerr << "vbs daemon target: --name must not be empty\n";
|
||||
@@ -2736,6 +2739,13 @@ int main(int argc, char **argv) {
|
||||
auto &daemon_workspace_members_cmd =
|
||||
daemon_workspace_cmd.subcommand("members", "List declared workspace members");
|
||||
configure_daemon_common(daemon_workspace_members_cmd);
|
||||
auto &daemon_actions_cmd =
|
||||
daemon_cmd.subcommand("actions", "List lowered build actions via the daemon");
|
||||
configure_daemon_common(daemon_actions_cmd);
|
||||
daemon_actions_cmd
|
||||
.option_default("--profile", "-p", "Profile to evaluate", daemon_opts.profile_arg, "debug")
|
||||
.option_default("--limit", "", "Maximum actions returned (0-1000)", daemon_opts.limit_arg,
|
||||
"100");
|
||||
auto &daemon_graph_cmd =
|
||||
daemon_cmd.subcommand("graph", "Export the target dependency graph via the daemon");
|
||||
configure_daemon_common(daemon_graph_cmd);
|
||||
|
||||
Reference in new issue
Block a user