From 7d982911f7f46526add1f1ea3dde5b5f701834f5 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 13 May 2025 16:29:31 +0200 Subject: Invocation server: include commandline when describing actions --- doc/invocations-http-server/server.py | 2 ++ doc/invocations-http-server/templates/invocation.html | 8 ++++++++ 2 files changed, 10 insertions(+) (limited to 'doc/invocations-http-server') diff --git a/doc/invocations-http-server/server.py b/doc/invocations-http-server/server.py index d1791c16..78a6e0ec 100755 --- a/doc/invocations-http-server/server.py +++ b/doc/invocations-http-server/server.py @@ -396,6 +396,8 @@ class InvocationServer: duration = profile_value.get('duration', 0.0) data["duration"] = '%0.3fs' % (duration,) if duration > 0 else None desc = graph.get('actions', {}).get(name, {}) + cmd = desc.get('command', []) + data["cmd"] = json.dumps(cmd) if cmd else None data["may_fail"] = desc.get("may_fail") data["stdout"] = profile_value.get('stdout') data["stderr"] = profile_value.get('stderr') diff --git a/doc/invocations-http-server/templates/invocation.html b/doc/invocations-http-server/templates/invocation.html index 2ebebb86..04549b2e 100644 --- a/doc/invocations-http-server/templates/invocation.html +++ b/doc/invocations-http-server/templates/invocation.html @@ -29,6 +29,14 @@ Inocations {{invocation | e}} {% if action["stderr"] %}
  • stderr: {{action["stderr"] | e }}
  • {% endif %} + {% if action["cmd"] %} +
  • +
    + command + {{ action["cmd"] | e }} +
    +
  • + {% endif %} {% if action["origins"] %}
  • origins