The FluentCI Purescript SDK is a library that provides a Purescript interface to the FluentCI API.
Add fluentci
to your spago.dhall
dependencies:
{ name = "demo"
, dependencies = [ "aff", "console", "effect", "prelude", "fluentci" ]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs" ]
}
And add the following to your packages.dhall
:
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.15.15-20240812/packages.dhall
sha256:557dc416167543923d0f944fdc0c7bc3e0466b9467a8fc2fba0460f8d5425725
in upstream
with fluentci =
{ dependencies =
[ "aff"
, "console"
, "effect"
, "prelude"
]
, repo =
"https://github.com/fluentci-io/purescript-fluentci.git"
, version =
"c0e9c1f6a0f769e3deec66eaf2e5a0c078ef8bb8"
}
Then install the package:
spago install
This is a quick start guide to get you up and running with the FluentCI Purescript SDK.
module Main where
import Prelude
import Effect (Effect)
import Effect.Aff (launchAff_)
import Effect.Class (liftEffect)
import Effect.Class.Console as Console
import FluentCI.Class (stdout, withExec)
import FluentCI.Client (dag, git)
import FluentCI.Git (branch, tree)
main :: Effect Unit
main = launchAff_ do
repo <- liftEffect $ do
g <- git dag "https://github.com/tsirysndr/me"
g1 <- branch g "main"
g2 <- tree g1
withExec g2 ["ls", "-ltr"]
stdout repo >>= Console.log