src/vmm/cmds.bend checks
raw source on the hub · import 0xcc60967bebc4a874a86f388a1bbb7c9c/src/vmm/cmds.bend as Cmds
2 imports
import Base import ../disk/access.bend as Ac
Types
type Sub source · line 21 · 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 34 · raw
@xs:List<&1, String> -> List<&2, String>
def Sub.l1 source · line 41 · raw
@xs:List<&2, String> -> List<&1, String>
def Sub.opt source · line 49 · 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 61 · 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 70 · raw
@args:List<&2, String> -> List<&2, String>
def Sub.first source · line 73 · raw
@+xs:List<&2, String> -> @+dflt:String -> String
def Sub.count source · line 76 · raw
@+xs:List<&2, String> -> U32
def Sub.named source · line 80 · raw
@+rest:List<&2, String> -> @+usage:String -> @+mk:U32 -> Sub
A command that takes one NAME.
def Sub.ctl_verb source · line 87 · raw
@+v:String -> Bool
def Sub.ctl_line source · line 91 · raw
@+v:String -> String
The control line a VM command sends (stop is quit).
def Sub.go source · line 94 · raw
@+cmd:String -> @+rest:List<&2, String> -> Sub
def Sub.parse source · line 117 · raw
@+args:List<&2, String> -> Sub
Which command a command line is: options first (or none) is no subcommand.
def Conf.path source · line 134 · raw
@+dir:String -> @+p:String -> String
def Conf.disk1 source · line 137 · 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>