Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
argotk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
argotk
Commits
021f3476
Commit
021f3476
authored
Feb 16, 2019
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sandbox work
parent
42e018b0
Pipeline
#5339
passed with stage
in 2 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
src/Argo/Utils.hs
src/Argo/Utils.hs
+0
-5
src/argotk.hs
src/argotk.hs
+2
-0
No files found.
src/Argo/Utils.hs
View file @
021f3476
...
...
@@ -155,11 +155,6 @@ runI (Instrumentation crProc (StdOutLog stdOut) (StdErrLog stdErr) t) = try
|
otherwise
->
yield
b
>>
untilMatch
msg
sawTraceback
Nothing
->
return
Clean
{-withSinkFileNoBuffering-}
{-:: (MonadUnliftIO m, MonadIO n)-}
{-=> IO.FilePath-}
{--> (ConduitM ByteString o n () -> m a)-}
{--> m a-}
withSinkFileNoBuffering
filepath
inner
=
withRunInIO
$
\
run
->
IO
.
withBinaryFile
filepath
IO
.
WriteMode
$
\
h
->
do
hSetBuffering
h
NoBuffering
...
...
src/argotk.hs
View file @
021f3476
...
...
@@ -24,6 +24,7 @@ import Data.Text as T
(
unpack
,
Text
)
import
System.IO
opts
::
StackArgs
->
Parser
(
Shell
()
)
opts
sa
=
hsubparser
...
...
@@ -393,6 +394,7 @@ clean StackArgs {..} = cleanLeftovers workingDirectory
main
::
IO
()
main
=
do
hSetBuffering
System
.
IO
.
stdout
NoBuffering
argonixShare
<-
getEnv
"ARGOTK_SHARE"
hwlocTC
<-
single
$
inshell
"hwloc-calc machine:0 -N PU"
empty
let
a
=
def
{
shareDir
=
ShareDir
$
decodeString
argonixShare
...
...
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