installers.web.tailwind4 #
tailwind4
To get started
import freeflowuniverse.herolib.installers.something. tailwind4
mut installer:= tailwind4.get()!
installer.start()!
example heroscript
!!tailwind4.install
homedir: '/home/user/tailwind4'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version = '4.0.8'
fn get #
fn get(args_ ArgsGet) !&Tailwind
fn heroscript_dumps #
fn heroscript_dumps(obj Tailwind) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !Tailwind
fn play #
fn play(args_ PlayArgs) !
fn switch #
fn switch(name string)
switch instance to be used for tailwind4
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 PlayArgs #
@[params]
struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}
struct Tailwind #
@[heap]
struct Tailwind {
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 (Tailwind) destroy #
fn (mut self Tailwind) destroy() !
fn (Tailwind) install #
fn (mut self Tailwind) install(args InstallArgs) !