| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DzenDhall.Commands.Plug
Synopsis
- plugCommand :: PlugCommand -> App Common ()
- data PluginSourceSpec
- askConfirmation :: App Common ()
- suggestReviewing :: Expr Src Import -> App Common ()
- printUsage :: PluginMeta -> App Common ()
- invalidSourceSpec :: ParseError -> App Common ()
- invalidFile :: Text -> App Common ()
- httpHandler :: HttpException -> IO a
- parseSourceSpec :: String -> Either ParseError PluginSourceSpec
- saneIdentifier :: Parsec String () String
- getPluginSource :: PluginSourceSpec -> String
- getPluginContents :: PluginSourceSpec -> IO Text
- getPluginContentsFromURL :: String -> IO Text
- parsePlugin :: Text -> Maybe (Expr Src Import)
- data MetaValidationError
- invalidMeta :: MetaValidationError -> App stage ()
- readPluginMeta :: PluginSourceSpec -> Text -> App Common (Either MetaValidationError PluginMeta)
- checkIfPluginFileExists :: Text -> App Common ()
- writePluginFile :: Text -> Text -> App Common ()
- getPluginPaths :: Text -> App Common (String, String)
Documentation
plugCommand :: PlugCommand -> App Common () Source #
data PluginSourceSpec Source #
Constructors
| FromGithub | Load from Github by username and repository |
| FromOrg | Load from |
| FromURL URI | Load from URL |
| FromFile FilePath | |
Instances
| Eq PluginSourceSpec Source # | |
Defined in DzenDhall.Commands.Plug Methods (==) :: PluginSourceSpec -> PluginSourceSpec -> Bool # (/=) :: PluginSourceSpec -> PluginSourceSpec -> Bool # | |
| Show PluginSourceSpec Source # | |
Defined in DzenDhall.Commands.Plug Methods showsPrec :: Int -> PluginSourceSpec -> ShowS # show :: PluginSourceSpec -> String # showList :: [PluginSourceSpec] -> ShowS # | |
askConfirmation :: App Common () Source #
printUsage :: PluginMeta -> App Common () Source #
invalidSourceSpec :: ParseError -> App Common () Source #
httpHandler :: HttpException -> IO a Source #
getPluginContentsFromURL :: String -> IO Text Source #
Load plugin from URL and validate it by parsing.
data MetaValidationError Source #
Constructors
| NoParse | |
| InvalidPluginName Text |
Instances
| Show MetaValidationError Source # | |
Defined in DzenDhall.Commands.Plug Methods showsPrec :: Int -> MetaValidationError -> ShowS # show :: MetaValidationError -> String # showList :: [MetaValidationError] -> ShowS # | |
invalidMeta :: MetaValidationError -> App stage () Source #
readPluginMeta :: PluginSourceSpec -> Text -> App Common (Either MetaValidationError PluginMeta) Source #
Try to load plugin meta by inserting a plugin into the current environment
(using inputWithSettings).