aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/command/version.lux
blob: a65ca499caf0cfc42186527297452beb252069e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(.require
 [library
  [lux (.except)
   [control
    [try (.only Try)]
    [concurrency
     ["[0]" async (.only Async)]]]
   ["[0]" meta
    ["[1]/[0]" version]
    [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)))