aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/spec
diff options
context:
space:
mode:
authorEduardo Julian2020-11-27 00:07:51 -0400
committerEduardo Julian2020-11-27 00:07:51 -0400
commit889139602b77e4387a6e8bfbedacc2a08703e976 (patch)
tree3a113e298037122e81b5529475bd1e59286f733f /stdlib/source/spec
parentdbb658bd7976c073a2bf314f194b36b30c45784b (diff)
Re-named lux/data/format/context to lux/control/parser/environment.
Diffstat (limited to 'stdlib/source/spec')
-rw-r--r--stdlib/source/spec/lux/world/shell.lux19
1 files changed, 10 insertions, 9 deletions
diff --git a/stdlib/source/spec/lux/world/shell.lux b/stdlib/source/spec/lux/world/shell.lux
index 69c1cc8ab..c10f77c12 100644
--- a/stdlib/source/spec/lux/world/shell.lux
+++ b/stdlib/source/spec/lux/world/shell.lux
@@ -8,25 +8,27 @@
[security
["!" capability]]
[concurrency
- ["." promise (#+ Promise)]]]
+ ["." promise (#+ Promise)]]
+ [parser
+ ["." environment]]]
[data
["." product]
["." text ("#\." equivalence)
["%" format (#+ format)]]
[number
["n" nat]
- ["i" int]]
- [format
- ["." context]]]
+ ["i" int]]]
[math
["." random]]]
{1
- ["." /]})
+ ["." /
+ [//
+ [environment (#+ Environment)]]]})
(template [<name> <command> <type> <prep>]
[(def: <name>
- (-> <type> [/.Environment /.Command (List /.Argument)])
- (|>> <prep> list [context.empty <command>]))]
+ (-> <type> [Environment /.Command (List /.Argument)])
+ (|>> <prep> list [environment.empty <command>]))]
[echo! "echo" Text (|>)]
[sleep! "sleep" Nat %.nat]
@@ -73,8 +75,7 @@
(#try.Failure error)
true)))))
-(with-expansions [<shell-coverage> (as-is [/.Can-Execute
- /.Environment /.Command /.Argument])]
+(with-expansions [<shell-coverage> (as-is [/.Can-Execute /.Command /.Argument])]
(def: #export (spec shell)
(-> (/.Shell Promise) Test)
(<| (_.with-cover [/.Shell /.Process])