-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow lakectl to run without a config file #1040
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1040 +/- ##
==========================================
+ Coverage 46.17% 46.24% +0.07%
==========================================
Files 152 152
Lines 12316 12318 +2
==========================================
+ Hits 5687 5697 +10
+ Misses 5903 5896 -7
+ Partials 726 725 -1
Continue to review full report at Codecov.
|
cmd/lakectl/cmd/root.go
Outdated
@@ -41,7 +41,11 @@ lakectl is a CLI tool allowing exploration and manipulation of a lakeFS environm | |||
return | |||
} | |||
if _, ok := cfgFileErr.(viper.ConfigFileNotFoundError); ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if len(cfgFile) > 0 && errors.As(cfgFileErr, &viper.ConfigFileNotFoundError{}) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also inaccurate as it will catch the second condition for cfgFileErr != nil
.
Refactored again.
6e92a12
to
757b868
Compare
757b868
to
0c60671
Compare
No description provided.