Skip to content
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

Merged
merged 2 commits into from
Dec 13, 2020
Merged

Conversation

itaiad200
Copy link
Contributor

No description provided.

@itaiad200 itaiad200 added the pr/merge-if-approved Reviewer: please feel free to merge if no major comments label Dec 10, 2020
@codecov-io
Copy link

codecov-io commented Dec 10, 2020

Codecov Report

Merging #1040 (0c60671) into master (a8dc344) will increase coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
catalog/mvcc/cataloger_list_entries.go 85.34% <0.00%> (+0.12%) ⬆️
catalog/mvcc/cataloger_create_branch.go 84.61% <0.00%> (+3.07%) ⬆️
config/logger.go 75.00% <0.00%> (+10.71%) ⬆️

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 a8dc344...0c60671. Read the comment docs.

cmd/lakectl/cmd/root.go Outdated Show resolved Hide resolved
@itaiad200 itaiad200 requested a review from nopcoder December 13, 2020 08:56
@@ -41,7 +41,11 @@ lakectl is a CLI tool allowing exploration and manipulation of a lakeFS environm
return
}
if _, ok := cfgFileErr.(viper.ConfigFileNotFoundError); ok {
Copy link
Contributor

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{}) {

Copy link
Contributor Author

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.

@itaiad200 itaiad200 force-pushed the feature/lakectl-no-file branch from 6e92a12 to 757b868 Compare December 13, 2020 09:33
@itaiad200 itaiad200 force-pushed the feature/lakectl-no-file branch from 757b868 to 0c60671 Compare December 13, 2020 10:06
@nopcoder nopcoder merged commit 11a13f8 into master Dec 13, 2020
@nopcoder nopcoder deleted the feature/lakectl-no-file branch December 13, 2020 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/merge-if-approved Reviewer: please feel free to merge if no major comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants