Files
herolib/lib/core/playcmds/play_dagu_test.v
mariobassem da2881f973 refactor: improve rclone client factory
- Refactor the rclone client factory to improve its
  organization and functionality.
- Add support for multiple rclone instances with named
  instances.

Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
2025-01-12 18:31:16 +02:00

32 lines
482 B
V

module playcmds
import freeflowuniverse.herolib.core.playbook
const dagu_script = "
!!dagu.configure
instance: 'test'
username: 'admin'
password: 'testpassword'
!!dagu.new_dag
name: 'test_dag'
!!dagu.add_step
dag: 'test_dag'
name: 'hello_world'
command: 'echo hello world'
!!dagu.add_step
dag: 'test_dag'
name: 'last_step'
command: 'echo last step'
"
fn test_play_dagu() ! {
mut plbook := playbook.new(text: dagu_script)!
play_dagu(mut plbook)!
// panic('s')
}