Skip to content

core.playcmds #

how to sue the playcmds

import freeflowuniverse.crystallib.core.playbook
import freeflowuniverse.crystallib.core.base

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


// path string
// text string
// git_url string
// git_pull bool
// git_branch string
// git_reset bool
// execute bool = true
// session  ?&base.Session      is optional

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

fn play_core #

fn play_core(mut plbook playbook.PlayBook) !

!!context.configure name:'test' coderoot:... interactive:true

fn play_dagu #

fn play_dagu(mut plbook playbook.PlayBook) !

fn play_dagu_basic #

fn play_dagu_basic(mut plbook playbook.PlayBook) !

play_dagu plays the dagu play commands

fn play_git #

fn play_git(mut plbook playbook.PlayBook) !

fn play_git_action #

fn play_git_action(action playbook.Action) !playbook.Action

fn play_juggler #

fn play_juggler(mut plbook playbook.PlayBook) !

fn play_luadns #

fn play_luadns(mut plbook playbook.PlayBook) !

fn play_mdbook #

fn play_mdbook(mut plbook playbook.PlayBook) !

fn play_ssh #

fn play_ssh(mut plbook playbook.PlayBook) !

fn play_threefold #

fn play_threefold(mut plbook playbook.PlayBook) !

fn play_zola #

fn play_zola(mut plbook playbook.PlayBook) !

fn run #

fn run(mut plbook playbook.PlayBook, dagu bool) !

fn scheduler #

fn scheduler(heroscript string) !