SimonTheLeg / konf-go

konf is a lightweight kubeconfig manager. With konf you can use different kubeconfigs at the same time. And because it does not need subshells, konf is blazing fast!
Apache License 2.0
168 stars 12 forks source link

fix: handling of hidden files #20

Closed SimonTheLeg closed 2 years ago

SimonTheLeg commented 2 years ago

This commit improves the handling of hidden files in the store. Usually it should be impossible for konf import to create such hidden files. However operating systems like MacOs, may place hidden files in the folder on their own. Before this fix, files like .DS_Store were breaking all konf set functionality

codecov[bot] commented 2 years ago

Codecov Report

Merging #20 (9b5179a) into main (afa8775) will increase coverage by 0.07%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
+ Coverage   79.07%   79.15%   +0.07%     
==========================================
  Files           9        9              
  Lines         540      542       +2     
==========================================
+ Hits          427      429       +2     
  Misses         83       83              
  Partials       30       30              
Impacted Files Coverage Δ
cmd/set.go 75.73% <100.00%> (+0.29%) :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 afa8775...9b5179a. Read the comment docs.