napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Spec.CliReporter

Synopsis

Documentation

type Success = Bool #

data State #

Instances

Instances details
Show State # 
Instance details

Defined in Napkin.Spec.CliReporter

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

Eq State # 
Instance details

Defined in Napkin.Spec.CliReporter

Methods

(==) :: State -> State -> Bool #

(/=) :: State -> State -> Bool #

data UIName #

Unique names for user interface elements necessary for brick.

Instances

Instances details
Show UIName # 
Instance details

Defined in Napkin.Spec.CliReporter

Eq UIName # 
Instance details

Defined in Napkin.Spec.CliReporter

Methods

(==) :: UIName -> UIName -> Bool #

(/=) :: UIName -> UIName -> Bool #

Ord UIName # 
Instance details

Defined in Napkin.Spec.CliReporter

data PreviousStates #

Instances

Instances details
Generic PreviousStates # 
Instance details

Defined in Napkin.Spec.CliReporter

Associated Types

type Rep PreviousStates 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep PreviousStates = D1 ('MetaData "PreviousStates" "Napkin.Spec.CliReporter" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "PreviousStates" 'PrefixI 'True) (S1 ('MetaSel ('Just "processingTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ElapsedSeconds)) :*: (S1 ('MetaSel ('Just "finishedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ElapsedSeconds)) :*: S1 ('MetaSel ('Just "info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))))
type Rep PreviousStates # 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep PreviousStates = D1 ('MetaData "PreviousStates" "Napkin.Spec.CliReporter" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "PreviousStates" 'PrefixI 'True) (S1 ('MetaSel ('Just "processingTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ElapsedSeconds)) :*: (S1 ('MetaSel ('Just "finishedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ElapsedSeconds)) :*: S1 ('MetaSel ('Just "info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))))

data StateInfo #

Instances

Instances details
Generic StateInfo # 
Instance details

Defined in Napkin.Spec.CliReporter

Associated Types

type Rep StateInfo 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep StateInfo = D1 ('MetaData "StateInfo" "Napkin.Spec.CliReporter" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "StateInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 State) :*: (S1 ('MetaSel ('Just "previousStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PreviousStates) :*: S1 ('MetaSel ('Just "sourceInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventSourceInfo))))
type Rep StateInfo # 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep StateInfo = D1 ('MetaData "StateInfo" "Napkin.Spec.CliReporter" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "StateInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 State) :*: (S1 ('MetaSel ('Just "previousStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PreviousStates) :*: S1 ('MetaSel ('Just "sourceInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventSourceInfo))))

data DrawState (b :: k) #

Instances

Instances details
Generic (DrawState b) # 
Instance details

Defined in Napkin.Spec.CliReporter

Associated Types

type Rep (DrawState b) 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep (DrawState b) = D1 ('MetaData "DrawState" "Napkin.Spec.CliReporter" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "DrawState" 'PrefixI 'True) (((S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "tableNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TableNameMap) :*: S1 ('MetaSel ('Just "showPostProcessedTableRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "tableStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 States) :*: (S1 ('MetaSel ('Just "elapsedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ElapsedSeconds) :*: S1 ('MetaSel ('Just "processingTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ElapsedSeconds)))) :*: ((S1 ('MetaSel ('Just "runDone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "wantsToQuit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "eta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EtaType))) :*: (S1 ('MetaSel ('Just "trackingQueryStats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TrackingQueryStats b)) :*: (S1 ('MetaSel ('Just "showError") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "specListView") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecListView))))))

Methods

from :: DrawState b -> Rep (DrawState b) x #

to :: Rep (DrawState b) x -> DrawState b #

type Rep (DrawState b) # 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep (DrawState b) = D1 ('MetaData "DrawState" "Napkin.Spec.CliReporter" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "DrawState" 'PrefixI 'True) (((S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "tableNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TableNameMap) :*: S1 ('MetaSel ('Just "showPostProcessedTableRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "tableStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 States) :*: (S1 ('MetaSel ('Just "elapsedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ElapsedSeconds) :*: S1 ('MetaSel ('Just "processingTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ElapsedSeconds)))) :*: ((S1 ('MetaSel ('Just "runDone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "wantsToQuit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "eta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EtaType))) :*: (S1 ('MetaSel ('Just "trackingQueryStats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TrackingQueryStats b)) :*: (S1 ('MetaSel ('Just "showError") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "specListView") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecListView))))))

data BeforeAfterRenamerRef #

represents table naming before and after renamer processing

Instances

Instances details
Generic BeforeAfterRenamerRef # 
Instance details

Defined in Napkin.Spec.CliReporter

Associated Types

type Rep BeforeAfterRenamerRef 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep BeforeAfterRenamerRef = D1 ('MetaData "BeforeAfterRenamerRef" "Napkin.Spec.CliReporter" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "BeforeAfterRenamerRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "beforeRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecTableName) :*: S1 ('MetaSel ('Just "afterRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table))))
type Rep BeforeAfterRenamerRef # 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep BeforeAfterRenamerRef = D1 ('MetaData "BeforeAfterRenamerRef" "Napkin.Spec.CliReporter" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "BeforeAfterRenamerRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "beforeRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecTableName) :*: S1 ('MetaSel ('Just "afterRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table))))

cliReporter :: forall {k} (b :: k). HasBackendQueryStats b => RuntimeEventQueue b -> [BeforeAfterRenamerRef] -> EtaType -> IO Success #

Pump the runtime event queue to display Spec execution progress in the terminal. Returns after all Specs are completed.

success :: forall {k} (b :: k). DrawState b -> Success #

printFinalReport :: forall {k} (b :: k). HasBackendQueryStats b => DrawState b -> IO () #

drawScreen :: forall {k} (b :: k). DrawState b -> [Widget UIName] #