Skip to content

installers.virt.pacman #

pacman

To get started



import freeflowuniverse.crystallib.installers.virt.pacman

mut installer:= pacman.get()!

installer.install()!

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

Constants #

const version = ''

fn get #

fn get(args_ ArgsGet) !&PacmanInstaller

fn switch #

fn switch(name string)

switch instance to be used for pacman

struct ArgsGet #

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

///////FACTORY

struct InstallArgs #

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

struct PacmanInstaller #

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) !