~/bend-docscommunity

src/vmm/cmds.bend checks

raw source on the hub · import 0x67452e7bc6132b3fa11a687623945b86/src/vmm/cmds.bend as Cmds

2 imports
import Base
import ../disk/access.bend as Ac

Types

type Sub source · line 24 · raw

Data

Definitions

def Sub.l2 source · line 38 · raw

@xs:List<&1, String> -> List<&2, String>

def Sub.l1 source · line 45 · raw

@xs:List<&2, String> -> List<&1, String>

def Sub.opt source · line 53 · raw

@args:List<&2, String> -> @+name:String -> @+dflt:String -> String

An option's value (the last given), or the default.

def Sub.pos.go source · line 65 · raw

@args:List<&2, String> -> @+skip:Bool -> List<&2, String>

The words that are not an option or an option's value.

def Sub.pos source · line 74 · raw

@args:List<&2, String> -> List<&2, String>

def Sub.first source · line 77 · raw

@+xs:List<&2, String> -> @+dflt:String -> String

def Sub.count source · line 80 · raw

@+xs:List<&2, String> -> U32

def Sub.named source · line 84 · raw

@+rest:List<&2, String> -> @+usage:String -> @+mk:U32 -> Sub

A command that takes one NAME.

def Sub.ctl_verb source · line 91 · raw

@+v:String -> Bool

def Sub.ctl_line source · line 95 · raw

@+v:String -> String

The control line a VM command sends (stop is quit).

def Sub.go source · line 98 · raw

@+cmd:String -> @+rest:List<&2, String> -> Sub

def Sub.parse source · line 122 · raw

@+args:List<&2, String> -> Sub

Which command a command line is: options first (or none) is no subcommand.

def Conf.path source · line 139 · raw

@+dir:String -> @+p:String -> String

def Conf.disk1 source · line 142 · raw

@+dir:String -> @+spec:String -> String

def Conf.disks source · line 145 · raw

@+dir:String -> @specs:List<&2, String> -> List<&2, String>

def Conf.head_path source · line 153 · raw

@+dir:String -> @+v:String -> String

The first comma-separated part is a path; the rest stays.

def Conf.value source · line 157 · raw

@+dir:String -> @+flag:String -> @+v:String -> String

def Conf.unquote source · line 165 · raw

@+v:String -> String

def Conf.line source · line 171 · raw

@+dir:String -> @+l:String -> @+acc:List<&2, String> -> List<&2, String>

One line's option and value, appended to the flags.

def Conf.lines source · line 179 · raw

@ls:List<&2, String> -> @+dir:String -> @+acc:List<&2, String> -> List<&2, String>

def Conf.flags source · line 187 · raw

@+dir:String -> @+text:String -> List<&2, String>

The VM options a folder's vm.conf makes.

def Conf.text source · line 191 · raw

@flags:List<&2, String> -> String

vm.conf for bend-vmm create: one option per line, as given.

def Conf.restore_flag source · line 205 · raw

@+f:String -> Bool

The options a restore of a folder's VM takes from vm.conf: the host files and sockets it names (Restore.differs checks them against the snapshot's), and this run's forwards; the rest is the snapshot's.

def Conf.for_restore source · line 209 · raw

@flags:List<&2, String> -> List<&2, String>