cernopendata / cernopendata-client

CERN Open Data command-line client
http://cernopendata-client.readthedocs.io/
GNU General Public License v3.0
10 stars 9 forks source link

printer: simplify usage and standardise colouring #86

Closed tiborsimko closed 4 years ago

tiborsimko commented 4 years ago

Simplifies usage of display_message() by keeping only one argument to specify info/note/progress/error message types.

Tunes down the output colouring to resemble more faithfully the practices from yay or brew, making the output more suitable for various terminal colour schemes.

Pins mock dependency to version 3 so that Python-2.7 tests would pass locally. (tox -e py27)

codecov-io commented 4 years ago

Codecov Report

Merging #86 (d59e910) into master (91dcd9b) will increase coverage by 0.04%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
+ Coverage   93.99%   94.03%   +0.04%     
==========================================
  Files          10       10              
  Lines         433      436       +3     
==========================================
+ Hits          407      410       +3     
  Misses         26       26              
Impacted Files Coverage Δ
cernopendata_client/cli.py 97.70% <ø> (ø)
cernopendata_client/searcher.py 82.52% <ø> (ø)
cernopendata_client/utils.py 100.00% <ø> (ø)
cernopendata_client/validator.py 100.00% <ø> (ø)
cernopendata_client/config.py 100.00% <100.00%> (ø)
cernopendata_client/downloader.py 94.11% <100.00%> (ø)
cernopendata_client/printer.py 100.00% <100.00%> (ø)
cernopendata_client/verifier.py 100.00% <100.00%> (ø)