Skip to content

Commit

Permalink
🐛 Fixed CLI version handling and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed May 7, 2024
1 parent 4f9348b commit cdaf803
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def example(name, dest=nil)
desc "version", "Display version details for Ceedling components"
# No long_desc() needed
def version()
@handler.version()
@handler.version( ENV )
end

end
Expand Down
12 changes: 7 additions & 5 deletions bin/cli_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -381,16 +381,18 @@ def create_example(env, app_cfg, options, name, dest)
end


def version()
def version(env)
# Handle console output of fun characters from environment variable only
@helper.process_decoration( env )

require 'ceedling/version'
version = <<~VERSION
Ceedling => #{Ceedling::Version::CEEDLING}
CMock => #{Ceedling::Version::CMOCK}
Unity => #{Ceedling::Version::UNITY}
CException => #{Ceedling::Version::CEXCEPTION}
Welcome to Ceedling!
Ceedling => #{Ceedling::Version::CEEDLING}
CMock => #{Ceedling::Version::CMOCK}
Unity => #{Ceedling::Version::UNITY}
CException => #{Ceedling::Version::CEXCEPTION}
VERSION
@loginator.log( version, Verbosity::NORMAL, LogLabels::TITLE )
end
Expand Down

0 comments on commit cdaf803

Please sign in to comment.