You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
add per-method description and timeout to shell commands
introducing new format in addition to the simple
methods:
method: "command"
you can now specify per-method customization with:
methods:
method:
description: "This shows up in the CLI"
method: "echo Hello"
timeout: 5
| `shell` | Shell command to execute scripts | `list[str]` | No | `["bash", "-c"]` |
75
+
| `timeout` | Command timeout in seconds | `int` | No | `300` |
76
+
77
+
**Method Configuration Options:**
78
+
79
+
For the dict format, each method supports:
80
+
- `command`: The shell command to execute (optional, defaults to `"echo Hello"`)
81
+
- `description`: CLI help text (optional, defaults to `"Execute the {method_name} shell method"`)
82
+
- `timeout`: Command-specific timeout in seconds (optional, defaults to global `timeout` value)
83
+
84
+
**Note:** You can mix both formats in the same configuration - use string format for simple commands and dict format when you want custom descriptions or timeouts.
85
+
37
86
## API Reference
38
87
39
88
Assuming the exporter driver is configured as in the example above, the client
@@ -66,7 +115,11 @@ methods will be generated dynamically, and they will be available as follows:
66
115
67
116
## CLI Usage
68
117
69
-
The shell driver also provides a CLI when using `jmp shell`. All configured methods become available as CLI commands, except for methods starting with `_` which are considered private and hidden from the end user:
118
+
The shell driver also provides a CLI when using `jmp shell`. All configured methods become available as CLI commands, except for methods starting with `_` which are considered private and hidden from the end user.
0 commit comments