Skip to content

installers.virt.pacman #

pacman

To get started



import freeflowuniverse.herolib.installers.virt.pacman

mut installer:= pacman.get()!

installer.install()!

important we don't check signatures on install this is dangerous !!!

Constants #

const version = 'v1.0'

fn get #

fn get(args_ ArgsGet) !&PacmanInstaller

fn heroscript_dumps #

fn heroscript_dumps(obj PacmanInstaller) !string

///////////NORMALLY NO NEED TO TOUCH

fn heroscript_loads #

fn heroscript_loads(heroscript string) !PacmanInstaller

fn play #

fn play(args_ PlayArgs) !

fn switch #

fn switch(name string)

switch instance to be used for pacman

struct ArgsGet #

@[params]
struct ArgsGet {
pub mut:
	name string
}

///////FACTORY

struct DefaultConfigArgs #

@[params]
struct DefaultConfigArgs {
	instance string = 'default'
}

helpers

struct InstallArgs #

@[params]
struct InstallArgs {
pub mut:
	reset bool
}

struct PacmanInstaller #

@[heap]
struct PacmanInstaller {
pub mut:
	name string = 'default'
}

THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED

fn (PacmanInstaller) destroy #

fn (mut self PacmanInstaller) destroy() !

fn (PacmanInstaller) install #

fn (mut self PacmanInstaller) install(args InstallArgs) !

struct PlayArgs #

@[params]
struct PlayArgs {
pub mut:
	heroscript string // if filled in then plbook will be made out of it
	plbook     ?playbook.PlayBook
	reset      bool
}