profview.bend checks
raw source on the hub · import cswap-bend-cli@0.1.0.0/profview.bend as Profview
11 imports
import Base import ./json.bend as Json import ./act.bend as Act import ./cmd.bend as Cmd import ./fs.bend as Fs import ./setload.bend as Setload import ./setwrite.bend as Setwrite import ./profile.bend as P import ./policy/safe.bend as SF import ./daemon/config.bend as Cfg import ./daemon/events.bend as Ev
Types
type Row source · line 80 · raw
Data
Row@mark:String -> @name:String -> @strategy:String -> @threshold:String -> @models:String -> @cooldown:String -> @interval:String -> @source:String -> Row
type Widths source · line 166 · raw
Data
Widths@n:Nat -> @s:Nat -> @t:Nat -> @m:Nat -> @c:Nat -> @i:Nat -> Widths
Definitions
def is_active.of source · line 20 · raw
@+a:Maybe<&2, String> -> @+name:String -> Bool
def is_active source · line 28 · raw
@+raw:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+name:String -> Bool
default is the active profile while active_profile is unset.
def opt_json source · line 31 · raw
@+m:Maybe<&2, 0x0717344745a30ebad1f19045228e8f18/json.Json> -> 0x0717344745a30ebad1f19045228e8f18/json.Json
def models_arr source · line 38 · raw
@+ms:List<&2, String> -> 0x0717344745a30ebad1f19045228e8f18/json.Json
def eff_json source · line 41 · raw
@+e:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> 0x0717344745a30ebad1f19045228e8f18/json.Json
def num_or_null source · line 45 · raw
@+m:Maybe<&2, String> -> 0x0717344745a30ebad1f19045228e8f18/json.Json
def prof_json2 source · line 48 · raw
@+p:0x0717344745a30ebad1f19045228e8f18/profile.Prof -> @+is_builtin:Bool -> @+stored:Bool -> @+active:Bool -> @+e:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> 0x0717344745a30ebad1f19045228e8f18/json.Json
def prof_json source · line 56 · raw
@+raw:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+cfg:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> @+p:0x0717344745a30ebad1f19045228e8f18/profile.Prof -> 0x0717344745a30ebad1f19045228e8f18/json.Json
A profile as the commands print it: what it sets, and what it comes to over the settings.
def cell source · line 59 · raw
@+set:Maybe<&2, String> -> @+eff:String -> String
def models_eff source · line 66 · raw
@+ms:List<&2, String> -> String
def models_cell source · line 73 · raw
@+set:Maybe<&2, String> -> @+eff:List<&2, String> -> String
def source_of source · line 83 · raw
@+is_builtin:Bool -> @+stored:Bool -> String
def row_of2 source · line 92 · raw
@+p:0x0717344745a30ebad1f19045228e8f18/profile.Prof -> @+mark:String -> @+src:String -> @+e:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> Row
def mark source · line 97 · raw
@+active:Bool -> String
def row_of source · line 104 · raw
@+raw:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+cfg:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> @+p:0x0717344745a30ebad1f19045228e8f18/profile.Prof -> Row
def rows_push source · line 107 · raw
@+m:Maybe<&2, 0x0717344745a30ebad1f19045228e8f18/profile.Prof> -> @+raw:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+cfg:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> @+rest:List<&2, Row> -> List<&2, Row>
def rows_of source · line 114 · raw
@+raw:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+cfg:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> @+ns:List<&2, String> -> List<&2, Row>
def header source · line 121 · raw
Row
def col_name source · line 124 · raw
@+rs:List<&2, Row> -> List<&2, String>
def col_strategy source · line 131 · raw
@+rs:List<&2, Row> -> List<&2, String>
def col_threshold source · line 138 · raw
@+rs:List<&2, Row> -> List<&2, String>
def col_models source · line 145 · raw
@+rs:List<&2, Row> -> List<&2, String>
def col_cooldown source · line 152 · raw
@+rs:List<&2, Row> -> List<&2, String>
def col_interval source · line 159 · raw
@+rs:List<&2, Row> -> List<&2, String>
def widths source · line 169 · raw
@+rs:List<&2, Row> -> Widths
def line source · line 172 · raw
@+w:Widths -> @+r:Row -> String
def lines source · line 177 · raw
@+w:Widths -> @+rs:List<&2, Row> -> List<&2, String>
def table source · line 185 · raw
@+rs:List<&2, Row> -> String
A table; a parenthesised cell is inherited from the autoswitch settings.
def prof_push source · line 188 · raw
@+m:Maybe<&2, 0x0717344745a30ebad1f19045228e8f18/profile.Prof> -> @+raw:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+cfg:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> @+rest:List<&2, 0x0717344745a30ebad1f19045228e8f18/json.Json> -> List<&2, 0x0717344745a30ebad1f19045228e8f18/json.Json>
def prof_jsons source · line 195 · raw
@+raw:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+cfg:0x0717344745a30ebad1f19045228e8f18/daemon/config.Cfg -> @+ns:List<&2, String> -> List<&2, 0x0717344745a30ebad1f19045228e8f18/json.Json>