Skip to content

Commit

Permalink
Merge pull request #31 from unhappychoice/feature/colorScheme
Browse files Browse the repository at this point in the history
Change light black color to white to make more readable
  • Loading branch information
unhappychoice committed Sep 23, 2019
2 parents 1f861d3 + c7bb076 commit bc467aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/circleci/cli/command/watch_command.rb
Expand Up @@ -57,7 +57,7 @@ def start_watcher_if_needed
def show_interrupted_build_results # rubocop:disable Metrics/AbcSize
@repository.builds_to_show.select(&:finished?).each do |build|
b = Response::Build.get(build.username, build.reponame, build.build_number)
title = "✅ Result of #{build.project_name} ##{build.build_number} completed in background".light_black
title = "✅ Result of #{build.project_name} ##{build.build_number} completed in background"
say Printer::BuildPrinter.header_for(build, title)
say Printer::StepPrinter.new(b.steps, pretty: @options.verbose).to_s
@repository.mark_as_shown(b.build_number)
Expand Down
6 changes: 3 additions & 3 deletions lib/circleci/cli/command/watch_command/build_watcher.rb
Expand Up @@ -28,9 +28,9 @@ def stop(status)
def bind_event_handling(channel) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
@client.bind_event_json(channel, 'newAction') do |json|
if @verbose
print_bordered json['log']['name'].light_black
print_bordered json['log']['name']
else
print json['log']['name'].light_black
print json['log']['name']
end
end

Expand All @@ -56,7 +56,7 @@ def bind_event_handling(channel) # rubocop:disable Metrics/AbcSize, Metrics/Meth
end

def notify_started
title = "👀 Start watching #{@build.project_name} ##{@build.build_number}".light_black
title = "👀 Start watching #{@build.project_name} ##{@build.build_number}"
say Printer::BuildPrinter.header_for(@build, title)
end

Expand Down
10 changes: 5 additions & 5 deletions lib/circleci/cli/printer/build_printer.rb
Expand Up @@ -5,12 +5,12 @@ module CLI
module Printer
class BuildPrinter
class << self
def header_for(build, title) # rubocop:disable Metrics/AbcSize
def header_for(build, title)
texts = [
['Project: '.light_black + build.project_name],
['Build: '.light_black + build.build_number.to_s],
['Author: '.light_black + build.author_name],
['Workflow: '.light_black + "#{build.workflow_name}/#{build.workflow_job_name}"]
['Project: ' + build.project_name],
['Build: ' + build.build_number.to_s],
['Author: ' + build.author_name],
['Workflow: ' + "#{build.workflow_name}/#{build.workflow_job_name}"]
]
Terminal::Table.new(title: title, rows: texts, style: { width: 120 }).to_s
end
Expand Down

0 comments on commit bc467aa

Please sign in to comment.