Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
cfbcc792
Verified
Commit
cfbcc792
authored
Apr 30, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[cli] secondary sort of routes list by method
parent
0603ffb7
Pipeline
#7555
failed with stages
in 63 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Routes.hs
bin/gargantext-cli/CLI/Server/Routes.hs
+2
-2
No files found.
bin/gargantext-cli/CLI/Server/Routes.hs
View file @
cfbcc792
...
@@ -19,7 +19,7 @@ import Gargantext.Prelude
...
@@ -19,7 +19,7 @@ import Gargantext.Prelude
import
Options.Applicative
import
Options.Applicative
import
Servant.API
import
Servant.API
import
Servant.API.Routes
import
Servant.API.Routes
import
Servant.API.Routes.Internal.Route
(
routePath
)
import
Servant.API.Routes.Internal.Route
(
route
Method
,
route
Path
)
import
Servant.API.WebSocket
qualified
as
WS
(
WebSocketPending
)
import
Servant.API.WebSocket
qualified
as
WS
(
WebSocketPending
)
import
Servant.Auth
qualified
as
Servant
import
Servant.Auth
qualified
as
Servant
...
@@ -56,7 +56,7 @@ routesCLI = \case
...
@@ -56,7 +56,7 @@ routesCLI = \case
CLIR_list
CLIR_list
->
do
->
do
let
routes
=
getRoutes
@
(
NamedRoutes
API
)
let
routes
=
getRoutes
@
(
NamedRoutes
API
)
let
cmpFunc
r
=
renderPath
(
r
^.
routePath
)
let
cmpFunc
r
=
(
renderPath
(
r
^.
routePath
),
r
^.
routeMethod
)
let
sortedRoutes
=
sortBy
(
\
a
b
->
compare
(
cmpFunc
a
)
(
cmpFunc
b
))
routes
let
sortedRoutes
=
sortBy
(
\
a
b
->
compare
(
cmpFunc
a
)
(
cmpFunc
b
))
routes
traverse_
(
T
.
putStrLn
.
renderRoute
)
sortedRoutes
traverse_
(
T
.
putStrLn
.
renderRoute
)
sortedRoutes
(
CLIR_export
filePath
)
(
CLIR_export
filePath
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment