Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
inferior-shell
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Show more breadcrumbs
qitab
inferior-shell
Commits
8914d215
Commit
8914d215
authored
12 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Hush some warnings
parent
60d0d8f7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
inferior-shell.asd
+1
-0
1 addition, 0 deletions
inferior-shell.asd
run-generic.lisp
+5
-5
5 additions, 5 deletions
run-generic.lisp
run-sbcl.lisp
+4
-0
4 additions, 0 deletions
run-sbcl.lisp
with
10 additions
and
5 deletions
inferior-shell.asd
+
1
−
0
View file @
8914d215
...
...
@@ -3,6 +3,7 @@
#+
sbcl
(
require
:sb-posix
)
(
defsystem
:inferior-shell
:defsystem-depends-on
(
:asdf-condition-control
)
:depends-on
(
:asdf
:xcvb-driver
:fare-utils
:fare-matcher
:fare-quasiquote-readtable
:fare-mop
:alexandria
)
:description
"spawn local or remote processes and shell pipes"
:components
...
...
This diff is collapsed.
Click to expand it.
run-generic.lisp
+
5
−
5
View file @
8914d215
...
...
@@ -82,29 +82,29 @@
(
with-slots
(
process
predicate
rest
)
result
(
format
stream
"~A ~A ~A"
process
predicate
rest
))))
; (defgeneric result-or ((result r)))
; (defgeneric result-and ((result r)))
(
defmethod
generic-run-spec
((
spec
or-spec
)
input
output
error
predicate
rest
resume
)
(
declare
(
ignorable
predicate
rest
))
(
list
(
make-instance
'result
:predicate
#'
result-or
:input
input
:output
output
:error
error
:rest
(
sequence-processes
spec
)
:resume
resume
)))
(
defmethod
generic-run-spec
((
spec
and-spec
)
input
output
error
predicate
rest
resume
)
(
declare
(
ignorable
predicate
rest
))
(
list
(
make-instance
'result
:predicate
#'
result-and
:input
input
:output
output
:error
error
:rest
(
sequence-processes
spec
)
:resume
resume
)))
(
defmethod
generic-run-spec
((
spec
progn-spec
)
input
output
error
predicate
rest
resume
)
(
declare
(
ignorable
predicate
rest
))
(
list
(
make-instance
'result
:predicate
nil
:input
input
:output
output
:error
error
:rest
(
sequence-processes
spec
)
:resume
resume
)))
(
defmethod
generic-run-spec
((
spec
fork-spec
)
input
output
error
predicate
rest
resume
)
(
declare
(
ignorable
predicate
rest
resume
))
(
loop
:for
p
:in
(
sequence-processes
spec
)
:do
(
generic-run-spec
p
input
output
error
nil
nil
nil
))
nil
)
(
defmethod
generic-run-spec
((
spec
pipe-spec
)
input
output
error
predicate
rest
resume
)
(
declare
(
ignorable
predicate
rest
resume
))
(
let
((
processes
(
sequence-processes
spec
))
(
r-input
)
(
r-output
)
...
...
This diff is collapsed.
Click to expand it.
run-sbcl.lisp
+
4
−
0
View file @
8914d215
...
...
@@ -2,6 +2,10 @@
(
in-package
:inferior-shell
)
(
defgeneric
result-or
(
result
))
(
defgeneric
result-and
(
result
))
(
defmethod
result-or
((
r
result
))
(
not
(
zerop
(
sb-ext:process-exit-code
(
result-process
r
)))))
...
...
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