Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
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 = DrawState {}
- specListViewL :: forall b. Lens' (DrawState b) SpecListView
- type SpecListView = List UIName StateLine
- data SpecList = SpecList
- type ErrorInfo = String
- type SuccessInfo = String
- data BeforeAfterRenamerRef = BeforeAfterRenamerRef {}
- data UpdateEvent b
- eventHandler :: HasBackendQueryStats b => BrickEvent UIName (UpdateEvent b) -> EventM UIName (DrawState b) ()
- cliReporter :: HasBackendQueryStats b => RuntimeEventQueue b -> [BeforeAfterRenamerRef] -> EtaType -> IO Success
- success :: DrawState b -> Success
- prettyElapsedTime :: Integer -> String
- printFinalReport :: HasBackendQueryStats b => DrawState b -> IO ()
- filterByState :: (State -> Bool) -> States -> States
- drawScreen :: 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 #
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 # |
type TableNameMap = Map String String #
specListViewL :: forall b. Lens' (DrawState b) SpecListView #
type SpecListView = List UIName StateLine #
type SuccessInfo = String #
data BeforeAfterRenamerRef #
represents table naming before and after renamer processing
data UpdateEvent b #
eventHandler :: HasBackendQueryStats b => BrickEvent UIName (UpdateEvent b) -> EventM UIName (DrawState b) () #
cliReporter :: 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 :: HasBackendQueryStats b => DrawState b -> IO () #
drawScreen :: DrawState b -> [Widget UIName] #
prettyUTCTime :: UTCTime -> String #
sortedStatesList :: States -> [StateLine] #
renderOneState :: Bool -> ElapsedSeconds -> Bool -> TableNameMap -> StateLine -> Widget UIName #
cliAttrMap :: AttrMap #
tableStatus :: AttrName #
napkinText :: [String] #