aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-08-18 03:29:15 -0400
committerEduardo Julian2021-08-18 03:29:15 -0400
commite00ba096c8837abe85d366e0c1293c09dbe84d81 (patch)
treedc1f0955d4461ae30bb4945cddd74c462f1aee98 /stdlib/source/program/aedifex.lux
parent3289b9dcf9d5d1c1e5c380e3185065c8fd32535f (diff)
Some bug fixes.
Diffstat (limited to 'stdlib/source/program/aedifex.lux')
-rw-r--r--stdlib/source/program/aedifex.lux36
1 files changed, 17 insertions, 19 deletions
diff --git a/stdlib/source/program/aedifex.lux b/stdlib/source/program/aedifex.lux
index 05aee240b..4dd110551 100644
--- a/stdlib/source/program/aedifex.lux
+++ b/stdlib/source/program/aedifex.lux
@@ -66,7 +66,7 @@
(def: repositories
(-> /.Profile (List (Repository Async)))
- (|>> (get@ #/.repositories)
+ (|>> (value@ #/.repositories)
set.list
(list\map (|>> (/repository/remote.repository http.default #.None) /repository.async))))
@@ -165,20 +165,21 @@
(#/cli.Deploy repository identity)
(..command
- (case [(get@ #/.identity profile)
- (dictionary.value repository (get@ #/.deploy_repositories profile))]
- [(#.Some artifact) (#.Some repository)]
- (/command/deploy.do! console
- (/repository.async (/repository/remote.repository http.default (#.Some identity) repository))
- (file.async file.default)
- artifact
- profile)
-
- [#.None _]
- (async\in (exception.except /.no_identity []))
-
- [_ #.None]
- (async\in (exception.except ..cannot_find_repository [repository (get@ #/.deploy_repositories profile)]))))
+ (case (value@ #/.identity profile)
+ (#.Some artifact)
+ (case (dictionary.value repository (value@ #/.deploy_repositories profile))
+ (#.Some repository)
+ (/command/deploy.do! console
+ (/repository.async (/repository/remote.repository http.default (#.Some identity) repository))
+ (file.async file.default)
+ artifact
+ profile)
+
+ #.None
+ (async\in (exception.except ..cannot_find_repository [repository (value@ #/.deploy_repositories profile)])))
+
+ #.None
+ (async\in (exception.except /.no_identity []))))
#/cli.Dependencies
(..command
@@ -207,8 +208,5 @@
(..command
(case auto
#/cli.Build (..with_dependencies program console (/command/auto.do! /command/auto.delay watcher /command/build.do!) profile)
- #/cli.Test (..with_dependencies program console (/command/auto.do! /command/auto.delay watcher /command/test.do!) profile)))))
-
- _
- (undefined)))
+ #/cli.Test (..with_dependencies program console (/command/auto.do! /command/auto.delay watcher /command/test.do!) profile)))))))
))))))