Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Polygon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Software
Polygon
Commits
12f8e6e1
Commit
12f8e6e1
authored
5 years ago
by
Nicolas Lenz
Browse files
Options
Downloads
Patches
Plain Diff
Recursive pull
parent
c3427d34
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
package.yaml
+3
-0
3 additions, 0 deletions
package.yaml
src/Command.hs
+11
-0
11 additions, 0 deletions
src/Command.hs
src/main.hs
+8
-1
8 additions, 1 deletion
src/main.hs
with
22 additions
and
1 deletion
package.yaml
+
3
−
0
View file @
12f8e6e1
...
...
@@ -15,6 +15,9 @@ dependencies:
-
classy-prelude
-
text
-
path
-
path-io
-
process
-
async
default-extensions
:
-
NoImplicitPrelude
...
...
This diff is collapsed.
Click to expand it.
src/Command.hs
0 → 100644
+
11
−
0
View file @
12f8e6e1
module
Command
where
import
ClassyPrelude
import
Path
import
System.Process
import
System.Exit
pull
::
Path
Abs
Dir
->
IO
Bool
pull
path
=
readCreateProcessWithExitCode
((
proc
"git"
[
"pull"
])
{
cwd
=
Just
$
fromAbsDir
path
})
""
>>=
\
case
(
ExitSuccess
,
_
,
_
)
->
return
True
_
->
return
False
This diff is collapsed.
Click to expand it.
src/main.hs
+
8
−
1
View file @
12f8e6e1
import
ClassyPrelude
import
Path.IO
-- import Control.Concurrent.Async
import
Command
main
::
IO
()
main
=
putStrLn
"Hello World"
main
=
do
current
<-
getCurrentDir
(
dirs
,
_
)
<-
listDir
current
results
<-
mapConcurrently
Command
.
pull
dirs
putStrLn
$
tshow
results
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment