Commit a4951b1
remove Run convenience method from jail interface
Simplified the jail package interface by removing the Run() method:
## Changes
- Removed jail.Run() convenience method from jail.go
- Updated CLI to use explicit Start() -> Execute() -> Stop() pattern
- Added proper defer j.Stop() for cleanup in CLI
## Rationale
Keeping the interface explicit and minimal:
- Start() - Initialize the jail environment
- Execute() - Run command in jail (requires Start() first)
- Stop() - Cleanup resources
This makes the lifecycle clear and gives users full control over
when initialization and cleanup happen.
## Usage Pattern
Co-authored-by: f0ssel <[email protected]>1 parent b0e7507 commit a4951b1
3 files changed
+9
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | 253 | | |
265 | 254 | | |
266 | 255 | | |
| |||
292 | 281 | | |
293 | 282 | | |
294 | 283 | | |
295 | | - | |
| 284 | + | |
0 commit comments