- 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>
32 lines
482 B
V
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')
|
|
}
|