From 17946a036d441871dc0d0125797c04b74a476414 Mon Sep 17 00:00:00 2001 From: Adrien Siami Date: Wed, 28 Aug 2024 13:03:06 +0200 Subject: [PATCH] Add command to print version --- exe/yamlfish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exe/yamlfish b/exe/yamlfish index 4ae460a..02707e7 100755 --- a/exe/yamlfish +++ b/exe/yamlfish @@ -18,6 +18,11 @@ class YamlfishExe < Thor def pull(locale) Yamlfish::Cli::Pull.new(locale, inplace: options[:inplace], force_update: options[:force_update], branch: options[:branch]).call end + + desc "version", "Prints the version" + def version + puts Yamlfish::Cli::VERSION + end end YamlfishExe.start(ARGV)