aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/command/version.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/program/aedifex/command/version.lux')
-rw-r--r--stdlib/source/program/aedifex/command/version.lux16
1 files changed, 16 insertions, 0 deletions
diff --git a/stdlib/source/program/aedifex/command/version.lux b/stdlib/source/program/aedifex/command/version.lux
new file mode 100644
index 000000000..8f26a7fb7
--- /dev/null
+++ b/stdlib/source/program/aedifex/command/version.lux
@@ -0,0 +1,16 @@
+(.module:
+ [lux #*
+ [tool
+ [compiler
+ ["." version]
+ ["." language #_
+ ["#/." lux #_
+ ["#" version]]]]]]
+ ["." /// #_
+ [command (#+ Command)]
+ ["#." action]])
+
+(def: #export (do! profile)
+ (Command Any)
+ (\ ///action.monad wrap
+ (log! (version.format language/lux.version))))