Class: RepoTender::CLI::ConfigCmd::Path

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
GlobalOptions
Defined in:
lib/repo_tender/cli/config.rb

Instance Method Summary collapse

Methods included from GlobalOptions

included

Instance Method Details

#call(plain: nil, json: nil, no_color: nil, quiet: nil) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/repo_tender/cli/config.rb', line 18

def call(plain: nil, json: nil, no_color: nil, quiet: nil, **)
  mode = UI::Mode.resolve(
    flags: {plain: plain, json: json, no_color: no_color, quiet: quiet},
    env: CLI.env,
    out: out
  )
  pastel = Pastel.new(enabled: mode.color)

  paths = CLI.make_paths
  out.puts pastel.cyan(paths.config_file)
  CLI.record_outcome(Outcome.new(exit_code: 0))
end