Skip to content

core.herocmds #

fn cmd_bootstrap #

fn cmd_bootstrap(mut cmdroot Command)

fn cmd_docsorter #

fn cmd_docsorter(mut cmdroot Command)

const wikipath = os.dir(@FILE) + '/wiki'

fn cmd_docusaurus #

fn cmd_docusaurus(mut cmdroot Command)

fn cmd_generator #

fn cmd_generator(mut cmdroot Command)

fn cmd_git #

fn cmd_git(mut cmdroot Command)

fn cmd_imagedownsize #

fn cmd_imagedownsize(mut cmdroot Command)

const wikipath = os.dir(@FILE) + '/wiki'

fn cmd_init #

fn cmd_init(mut cmdroot Command)

fn cmd_installers #

fn cmd_installers(mut cmdroot Command)

fn cmd_luadns #

fn cmd_luadns(mut cmdroot Command)

Main function to set up CLI commands

fn cmd_mdbook #

fn cmd_mdbook(mut cmdroot Command)

path string //if location on filessytem, if exists, this has prio on git_url git_url string // location of where the hero scripts are git_pull bool // means when getting new repo will pull even when repo is already there git_pullreset bool // means we will force a pull and reset old content coderoot string //the location of coderoot if its another one

fn cmd_run #

fn cmd_run(mut cmdroot Command)

path string //if location on filessytem, if exists, this has prio on git_url git_url string // location of where the hero scripts are git_pull bool // means when getting new repo will pull even when repo is already there git_pullreset bool // means we will force a pull and reset old content coderoot string //the location of coderoot if its another one

fn cmd_run_add_flags #

fn cmd_run_add_flags(mut cmd_run Command)

fn cmd_sshagent #

fn cmd_sshagent(mut cmdroot Command)

fn cmd_starlight #

fn cmd_starlight(mut cmdroot Command)

fn plbook_code_get #

fn plbook_code_get(cmd Command) !string

returns the path of the fetched repo url

fn plbook_run #

fn plbook_run(cmd Command) !(&playbook.PlayBook, string)

same as session_run_get but will also run the playbook