mstruebing / tldr

Golang command line client for tldr https://github.com/tldr-pages/tldr
MIT License
262 stars 24 forks source link

feat(cache): use XDG defaults #44

Closed mstruebing closed 5 years ago

mstruebing commented 5 years ago

What I did: I used the XDG_CACHE_HOME environment variable if set

Why I did it: because there is a standard which says where to store cache files and not to simply litter the home folder (see #43)

closes #43

codecov-io commented 5 years ago

Codecov Report

Merging #44 into master will increase coverage by 0.78%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
+ Coverage   65.88%   66.66%   +0.78%     
==========================================
  Files           3        3              
  Lines         170      174       +4     
==========================================
+ Hits          112      116       +4     
  Misses         33       33              
  Partials       25       25
Impacted Files Coverage Δ
cache/cache.go 58.06% <100%> (+1.39%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 00ce4bb...e1e4511. Read the comment docs.