Skip to content

Commit

Permalink
Clean up version cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Oct 29, 2023
1 parent 801ffe1 commit 2f08942
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/k16/kl/cli.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
(let [res (proc/sh (str/split "git describe --abbrev=0 --tags" #" "))]
(str/replace (str/trim (:out res)) #"v" "")))

(def version-cmd
{:command "version"
:description "Print the current CLI version"
:runs (fn [_] (log/info (version)))})

(def cli-configuration
{:command "kl"
:description "A CLI for running remotely defined services"
:version (version)
:subcommands [{:command "version"
:description "Print the current CLI version"
:runs (fn [_]
(log/info (version)))}

:subcommands [version-cmd
cmd.modules/cmd
cmd.network/cmd
cmd.resolver/cmd
Expand Down

0 comments on commit 2f08942

Please sign in to comment.