installers.lang.herolib #
Installer - Herolib Module
herolib.install
Installs the hero
command-line tool.
Example:
!!herolib.install reset: true
herolib.compile
git_pull
(bool): Pull the latest changes from the git repository. Default:true
.git_reset
(bool): Reset the git repository. Default:false
.reset
(bool): If true, reinstall. Default:false
.
!!herolib.hero_compile git_reset:1 reset:1
herolib.uninstall
!!herolib.uninstall
fn compile #
fn compile(args InstallArgs) !
fn install #
fn install(args InstallArgs) !
fn play #
fn play(mut plbook playbook.PlayBook) !
fn uninstall #
fn uninstall() !
remove hero, crystal, ...
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
git_pull bool
git_reset bool
reset bool // means reinstall
}