Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- type Success = Bool
- data State
- = Pending
- | Processing
- | Skipped
- | Done
- | Failed
- data UIName
- data PreviousStates = PreviousStates {}
- freshPreviousStates :: PreviousStates
- prevStatesFinishedTime :: PreviousStates -> Maybe ElapsedSeconds
- type ElapsedSeconds = Integer
- data EventSourceInfo
- eventSourceInfo :: EventSource -> EventSourceInfo
- data StateInfo = StateInfo {}
- type States = Map String StateInfo
- type TableNameMap = Map String String
- data DrawState (b :: k) = DrawState {}
- type SpecListView = List UIName StateLine
- type ErrorInfo = String
- data BeforeAfterRenamerRef = BeforeAfterRenamerRef {}
- data UpdateEvent (b :: k)
- eventHandler :: forall {k} (b :: k). HasBackendQueryStats b => BrickEvent UIName (UpdateEvent b) -> EventM UIName (DrawState b) ()
- cliReporter :: forall {k} (b :: k). HasBackendQueryStats b => RuntimeEventQueue b -> [BeforeAfterRenamerRef] -> EtaType -> IO Success
- success :: forall {k} (b :: k). DrawState b -> Success
- prettyElapsedTime :: Integer -> String
- printFinalReport :: forall {k} (b :: k). HasBackendQueryStats b => DrawState b -> IO ()
- filterByState :: (State -> Bool) -> States -> States
- drawScreen :: forall {k} (b :: k). DrawState b -> [Widget UIName]
- prettyUTCTime :: UTCTime -> String
- data StateLine = StateLine String State PreviousStates EventSourceInfo
- sortedStatesList :: States -> [StateLine]
- renderOneState :: Bool -> ElapsedSeconds -> Bool -> TableNameMap -> StateLine -> Widget UIName
- cliAttrMap :: AttrMap
- tableRowSelected :: AttrName
- successStateLine :: AttrName
- skippedStateLine :: AttrName
- failureStateLine :: AttrName
- processingStateLine :: AttrName
- pendingStateLine :: AttrName
- introBox :: AttrName
- errorBox :: AttrName
- tableStatus :: AttrName
- tableStatusError :: AttrName
- napkinText :: [String]
Documentation
Unique names for user interface elements necessary for brick.
data PreviousStates #
Instances
type ElapsedSeconds = Integer #
data EventSourceInfo #
Instances
Show EventSourceInfo # | |
Defined in Napkin.Spec.CliReporter showsPrec :: Int -> EventSourceInfo -> ShowS # show :: EventSourceInfo -> String # showList :: [EventSourceInfo] -> ShowS # | |
Eq EventSourceInfo # | |
Defined in Napkin.Spec.CliReporter (==) :: EventSourceInfo -> EventSourceInfo -> Bool # (/=) :: EventSourceInfo -> EventSourceInfo -> Bool # |
Instances
Generic StateInfo # | |||||
Defined in Napkin.Spec.CliReporter
| |||||
type Rep StateInfo # | |||||
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 TableNameMap = Map String String #
DrawState | |
|
Instances
Generic (DrawState b) # | |||||
Defined in Napkin.Spec.CliReporter
| |||||
type Rep (DrawState b) # | |||||
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)))))) |
type SpecListView = List UIName StateLine #
data BeforeAfterRenamerRef #
represents table naming before and after renamer processing
Instances
Generic BeforeAfterRenamerRef # | |||||
Defined in Napkin.Spec.CliReporter
| |||||
type Rep BeforeAfterRenamerRef # | |||||
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)))) |
data UpdateEvent (b :: k) #
eventHandler :: forall {k} (b :: k). HasBackendQueryStats b => BrickEvent UIName (UpdateEvent b) -> EventM UIName (DrawState b) () #
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.
prettyElapsedTime :: Integer -> String #
printFinalReport :: forall {k} (b :: k). HasBackendQueryStats b => DrawState b -> IO () #
drawScreen :: forall {k} (b :: k). DrawState b -> [Widget UIName] #
prettyUTCTime :: UTCTime -> String #
sortedStatesList :: States -> [StateLine] #
renderOneState :: Bool -> ElapsedSeconds -> Bool -> TableNameMap -> StateLine -> Widget UIName #
cliAttrMap :: AttrMap #
tableStatus :: AttrName #
napkinText :: [String] #