~/bend-docscommunity

daemon/shadowcli.bend relies on unsafe/foreign

raw source on the hub · import cswap-bend-cli@0.1.0.0/daemon/shadowcli.bend as Shadowcli

7 imports
import Base
import ../fs.bend as Fs
import ../act.bend as Act
import ../store/base.bend as SBase
import ../swlive.bend as L
import ./config.bend as Cfg
import ./shadow.bend as Sh

Types

type Split source · line 14 · raw

Data

Definitions

def ActM source · line 17 · raw

@-A:Type -> Type

def ActM.pure source · line 20 · raw

@-A:Type -> @x:A -> 0x0717344745a30ebad1f19045228e8f18/act.of(A)

def ActM.bind source · line 23 · raw

@-A:Type -> @-B:Type -> @m:0x0717344745a30ebad1f19045228e8f18/act.of(A) -> @f:(@_:A -> 0x0717344745a30ebad1f19045228e8f18/act.of(B)) -> 0x0717344745a30ebad1f19045228e8f18/act.of(B)

def sp_shadow source · line 26 · raw

@+s:Split -> Bool

def sp_log source · line 31 · raw

@+s:Split -> Maybe<&2, String>

def sp_rest source · line 36 · raw

@+s:Split -> List<&2, String>

def keep source · line 41 · raw

@+a:String -> @+s:Split -> Split

def mark source · line 46 · raw

@+s:Split -> Split

def set_log source · line 51 · raw

@+v:String -> @+s:Split -> Split

def pick source · line 56 · raw

@+pend:Bool -> @+is_sh:Bool -> @+is_log:Bool -> @+a:String -> @+r:Split -> Split

def next_pend source · line 67 · raw

@+pend:Bool -> @+is_log:Bool -> Bool

def split source · line 75 · raw

@+xs:List<&2, String> -> @+pend:Bool -> Split

pend: the previous argument was --shadow-log, so this one is its value.

def settings_text source · line 82 · raw

@r:0x0717344745a30ebad1f19045228e8f18/fs.Res(String) -> String

def read_settings source · line 89 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)

def flag_once source · line 92 · raw

@+f:0x0717344745a30ebad1f19045228e8f18/daemon/config.Flags -> Bool

def started source · line 97 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> @+opts:0x0717344745a30ebad1f19045228e8f18/swlive.Opts -> @+log:String -> @+f:0x0717344745a30ebad1f19045228e8f18/daemon/config.Flags -> @+text:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(U32)

def with_flags source · line 100 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> @+opts:0x0717344745a30ebad1f19045228e8f18/swlive.Opts -> @+log:String -> @r:Result<&2, &2, String, 0x0717344745a30ebad1f19045228e8f18/daemon/config.Flags> -> 0x0717344745a30ebad1f19045228e8f18/act.of(U32)

def with_log source · line 107 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> @+opts:0x0717344745a30ebad1f19045228e8f18/swlive.Opts -> @+m:Maybe<&2, String> -> @+rest:List<&2, String> -> 0x0717344745a30ebad1f19045228e8f18/act.of(U32)

def run source · line 115 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> @+opts:0x0717344745a30ebad1f19045228e8f18/swlive.Opts -> @+sp:Split -> 0x0717344745a30ebad1f19045228e8f18/act.of(U32)

Run auto --shadow ... (ARGS is what follows the verb).