Release 2.7.0: executable handbooks and native user-site workflows
This commit is contained in:
1 parent
aa0c4d0f55
commit
d9aef957f7
562 files changed
+21064
-20387
No files matched your search
@@ -53,7 +53,15 @@ func CallLibPath(path string, args map[string]any) (any, error) {
|
||||
// RunArtifact loads and runs a Document/Endpoint `.mq.md` (ADR 0007).
|
||||
// Request fields are passed as Metadata Binding overlays (`arg` / `--bind`).
|
||||
func RunArtifact(path string, args map[string]any) (any, error) {
|
||||
return RunArtifactAtRoot(path, args, "")
|
||||
}
|
||||
|
||||
// RunArtifactAtRoot retains a selected site directory within the host's grant.
|
||||
func RunArtifactAtRoot(path string, args map[string]any, root string) (any, error) {
|
||||
payload := map[string]any{"path": path}
|
||||
if root != "" {
|
||||
payload["root"] = root
|
||||
}
|
||||
if len(args) > 0 {
|
||||
payload["args"] = args
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user