lib/rubysmith/cli/parsers/build.rb in rubysmith-4.6.1 vs lib/rubysmith/cli/parsers/build.rb in rubysmith-4.7.0

- old
+ new

@@ -6,11 +6,11 @@ module Rubysmith module CLI module Parsers # Handles parsing of Command Line Interface (CLI) build options. class Build - include Import[:colorizer] + include Import[:color] using Refinements::Structs def self.call(...) = new(...).call @@ -296,10 +296,10 @@ def default option option.to_s .sub("add_", "build_") .then { |attribute| configuration.public_send attribute } - .then { |boolean| boolean ? colorizer.green(boolean) : colorizer.red(boolean) } + .then { |bool| bool ? color[bool, :green] : color[bool, :red] } .then { |colored_boolean| "Default: #{colored_boolean}" } end end end end