src/vmm/cmds.bend checks
raw source on the hub · import 0x5d8f2af4bacb57815fa6a96a49bd679a/src/vmm/cmds.bend as Cmds
1 import
import Base
Types
type Sub source · line 20 · raw
Data
SubNoneSub
SubBad@why:String -> Sub
SubCreate@dir:String -> @flags:List<&2, String> -> Sub
SubRun@dir:String -> Sub
SubSnap@vm:String -> @name:String -> @note:String -> Sub
SubSnaps@vm:String -> Sub
SubRestore@vm:String -> @name:String -> Sub
SubRm@vm:String -> @name:String -> Sub
SubPrune@vm:String -> @keep:U32 -> Sub
SubCtl@vm:String -> @line:String -> Sub
SubRaw@sock:String -> @line:String -> Sub
Definitions
def Sub.l2 source · line 33 · raw
@xs:List<&1, String> -> List<&2, String>
def Sub.l1 source · line 40 · raw
@xs:List<&2, String> -> List<&1, String>
def Sub.opt source · line 48 · 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 60 · 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 69 · raw
@args:List<&2, String> -> List<&2, String>
def Sub.first source · line 72 · raw
@+xs:List<&2, String> -> @+dflt:String -> String
def Sub.count source · line 75 · raw
@+xs:List<&2, String> -> U32
def Sub.named source · line 79 · raw
@+rest:List<&2, String> -> @+usage:String -> @+mk:U32 -> Sub
A command that takes one NAME.
def Sub.ctl_verb source · line 86 · raw
@+v:String -> Bool
def Sub.ctl_line source · line 90 · raw
@+v:String -> String
The control line a VM command sends (stop is quit).
def Sub.go source · line 93 · raw
@+cmd:String -> @+rest:List<&2, String> -> Sub
def Sub.parse source · line 116 · raw
@+args:List<&2, String> -> Sub
Which command a command line is: options first (or none) is no subcommand.
def Conf.path source · line 133 · raw
@+dir:String -> @+p:String -> String
def Conf.disk1 source · line 136 · raw
@+dir:String -> @+spec:String -> String
def Conf.disks source · line 140 · raw
@+dir:String -> @specs:List<&2, String> -> List<&2, String>
def Conf.head_path source · line 148 · raw
@+dir:String -> @+v:String -> String
The first comma-separated part is a path; the rest stays.
def Conf.value source · line 152 · raw
@+dir:String -> @+flag:String -> @+v:String -> String
def Conf.unquote source · line 160 · raw
@+v:String -> String
def Conf.line source · line 166 · 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 174 · raw
@ls:List<&2, String> -> @+dir:String -> @+acc:List<&2, String> -> List<&2, String>
def Conf.flags source · line 182 · raw
@+dir:String -> @+text:String -> List<&2, String>
The VM options a folder's vm.conf makes.
def Conf.text source · line 186 · raw
@flags:List<&2, String> -> String
vm.conf for bend-vmm create: one option per line, as given.
def Conf.restore_flag source · line 200 · 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 204 · raw
@flags:List<&2, String> -> List<&2, String>