Files
herolib/lib/core/playcmds
2025-07-21 12:50:29 +02:00
..
...
2025-06-15 16:30:40 +02:00
...
2024-12-30 08:01:17 +01:00
...
2024-12-30 08:01:17 +01:00
...
2024-12-30 08:01:17 +01:00
...
2025-07-21 12:50:29 +02:00
...
2024-12-30 08:01:17 +01:00
2025-02-06 06:26:44 +03:00
2024-12-31 15:14:13 +02:00
2025-02-06 06:26:44 +03:00
2024-12-30 17:36:22 +02:00
2025-02-06 06:26:44 +03:00
...
2025-06-15 16:30:40 +02:00
...
2025-05-09 12:53:08 +03:00
...
2025-07-21 07:27:17 +02:00
2024-12-31 15:14:13 +02:00
...
2025-05-09 12:53:08 +03:00
2025-01-02 19:01:37 +02:00

how to use the playcmds

import freeflowuniverse.herolib.core.playbook
import freeflowuniverse.herolib.core.base

mut s:=base.session_new(
    coderoot:'/tmp/code'
    interactive:true
)!


// Path to the code execution directory
path string

// Command text to execute (e.g., "ls -la")
text string

// Git repository URL for version control
git_url string

// Pull latest changes from git
git_pull bool

// Git branch to use
git_branch string

// Reset repository before pull
git_reset bool

// Execute command after setup
execute bool = true

// Optional session object for state management
session ?&base.Session

mut plbook := playbook.new(text: "....",session:s) or { panic(err) }