[cli] printRoutesSorted now merged to upstream servant-routes

parent 8a6eea0e
......@@ -13,7 +13,6 @@ import CLI.Types
import Data.Aeson.Encode.Pretty
import Data.ByteString qualified as B
import Data.ByteString.Lazy qualified as BL
import Data.Text.IO qualified as T
import Gargantext.API.Routes.Named
import Gargantext.Prelude
import Options.Applicative
......@@ -53,6 +52,6 @@ instance HasRoutes Raw where
routesCLI :: CLIRoutes -> IO ()
routesCLI = \case
CLIR_list
-> traverse_ (T.putStrLn . renderRoute) . sort $ getRoutes @(NamedRoutes API)
-> printRoutesSorted @(NamedRoutes API)
(CLIR_export filePath)
-> B.writeFile filePath . BL.toStrict $ encodePretty (getRoutes @(NamedRoutes API))
......@@ -146,7 +146,7 @@ source-repository-package
source-repository-package
type: git
location: https://github.com/fpringle/servant-routes.git
tag: 7694f62af6bc1596d754b42af16da131ac403b3a
tag: c3c558d9278ef239a474f1e1b69afc461be60d01
source-repository-package
type: git
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment