aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/command/version.lux
blob: 6e3e5dd3ffe88b6da39642e5b4845b5079692157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(.using
 [library
  [lux (.full)
   [control
    [try (.only Try)]
    [concurrency
     ["[0]" async (.only Async)]]]
   ["[0]" meta "_"
    ["[1]/[0]" version]]
   [tool
    [compiler
     ["[0]" version]]]
   [world
    ["[0]" console (.only Console)]]]]
 [///
  [command (.only Command)]])

(def: .public (do! console profile)
  (-> (Console Async) (Command Any))
  (is (Async (Try Any))
      (console.write_line (version.format meta/version.latest)
                          console)))