packages feed

seihou-okf-extension 0.10.1.0 → 0.11.0.0

raw patch · 3 files changed

+9/−7 lines, 3 filesdep ~seihou-corePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: seihou-core

API changes (from Hackage documentation)

Files

seihou-okf-extension.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: seihou-okf-extension-version: 0.10.1.0+version: 0.11.0.0 synopsis: OKF documentation extension for Seihou registries description:   External Seihou extension executable for generating OKF documentation bundles@@ -60,7 +60,7 @@     lens >=5.2 && <6,     okf-core ^>=0.10.0.0,     optparse-applicative >=0.18 && <1,-    seihou-core ^>=0.10.1.0,+    seihou-core ^>=0.11.0.0,     temporary >=1.3 && <2,     text >=2.0 && <3, @@ -118,7 +118,7 @@     hspec >=2.11 && <3,     lens >=5.2 && <6,     okf-core ^>=0.10.0.0,-    seihou-core ^>=0.10.1.0,+    seihou-core ^>=0.11.0.0,     seihou-okf-extension-internal,     tasty >=1.4 && <2,     tasty-hspec >=1.2 && <2,
src/Seihou/OKF/Docs/Render.hs view
@@ -53,6 +53,7 @@     Blueprint (..),     BlueprintFile (..),     Command (..),+    CommandLifecycle (..),     CommandVar (..),     Dependency (..),     Expr,@@ -602,8 +603,8 @@ renderCommands commands = T.unlines (renderCommand <$> commands)  renderCommand :: Command -> T.Text-renderCommand Command {run, workDir, condition} =-  "- `" <> run <> "`" <> renderWorkDir workDir <> renderCondition condition+renderCommand Command {run, workDir, condition, lifecycle} =+  "- `" <> run <> "`" <> renderWorkDir workDir <> renderCondition condition <> (if lifecycle == CheckoutCommandLifecycle then " (repeatable checkout setup; seihou sync)" else "")  renderWorkDir :: Maybe T.Text -> T.Text renderWorkDir = foldMap (\dir -> " in `" <> dir <> "`")
test/Seihou/OKF/Docs/RenderSpec.hs view
@@ -548,7 +548,8 @@         [ Command             { run = "cabal build",               workDir = Just "app",-              condition = Just (ExprIsSet "license")+              condition = Just (ExprIsSet "license"),+              lifecycle = ApplicationCommand             }         ],       dependencies = [],@@ -560,7 +561,7 @@                   RemovalStep {action = RemoveSectionAction, dest = ".gitignore", src = Nothing}                 ],               commands =-                [Command {run = "rm -rf dist-newstyle", workDir = Nothing, condition = Nothing}]+                [Command {run = "rm -rf dist-newstyle", workDir = Nothing, condition = Nothing, lifecycle = ApplicationCommand}]             },       migrations =         [ Migration