installers.web.tailwind #
tailwind
To get started
import freeflowuniverse.herolib.installers.something. tailwind
mut installer:= tailwind.get()!
installer.start()!
example heroscript
!!tailwind.install
homedir: '/home/user/tailwind'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version = '3.4.12'
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 tailwind
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'
}
fn (Tailwind) destroy #
fn (mut self Tailwind) destroy() !
fn (Tailwind) install #
fn (mut self Tailwind) install(args InstallArgs) !