Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data SpecFolders = SpecFolders {}
- data InteractiveRuntimeEnv
- data InteractiveCommandOptions = InteractiveCommandOptions {}
- type InteractiveCLICommand = NapkinExceptIO InteractiveRuntimeEnv
- type InteractiveAction e = forall b. ValidateSpecsRequirements b => (RawInterpretedSpec b, RuntimeEnv, YamlSpec b) -> IO (Either e ())
- class ToInteractiveOptions a where
- chooseInteractiveCommand :: ToNapkinError e => InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> CLICommand
- reloadableAction :: ToNapkinError e => Maybe SpecFolders -> Maybe RuntimeEnv -> InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> InteractiveCLICommand
- autoReloadAction :: ToNapkinError e => InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> CLICommand
- readSpecFolders :: MonadIO m => FilePath -> YamlSpec b -> m SpecFolders
Documentation
data SpecFolders #
Instances
Eq SpecFolders # | |
Defined in Napkin.Cli.Interactive.Interactive (==) :: SpecFolders -> SpecFolders -> Bool # (/=) :: SpecFolders -> SpecFolders -> Bool # |
type InteractiveAction e = forall b. ValidateSpecsRequirements b => (RawInterpretedSpec b, RuntimeEnv, YamlSpec b) -> IO (Either e ()) #
class ToInteractiveOptions a where #
chooseInteractiveCommand :: ToNapkinError e => InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> CLICommand #
Choose whether to run a reloadable acton interactively or not.
reloadableAction :: ToNapkinError e => Maybe SpecFolders -> Maybe RuntimeEnv -> InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> InteractiveCLICommand #
Run a reloadable action.
autoReloadAction :: ToNapkinError e => InteractiveCommandOptions -> LogOptions -> InteractiveAction e -> CLICommand #
Wait for a spec file or a Haskell file to change and reload action.
readSpecFolders :: MonadIO m => FilePath -> YamlSpec b -> m SpecFolders #