-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Git command warning #630
Git command warning #630
Conversation
cmd/root.go
Outdated
@@ -228,6 +222,7 @@ func Execute() { | |||
} | |||
} | |||
if !knownFlag { | |||
fmt.Println("Warning: lab's git passthrough command support will be removed in a later release.") |
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.
@prarit shouldn't these be written to stderr
?
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.
Oh of course. Thanks for catching that.
I just merged #629, could you rebase this PR to consider the merge code? :) |
lab is a command line utility for GitLab. It does wrap around git currently, however, that isn't lab's primary purpose. Update lab's description. Additional fix: Remove some dead code. Additional fix: Warn git wrapper users that git wrap functionality will eventually be removed. Signed-off-by: Prarit Bhargava <prarit@redhat.com>
b48f078
to
6ff246b
Compare
Codecov Report
@@ Coverage Diff @@
## master #630 +/- ##
==========================================
+ Coverage 56.14% 56.21% +0.07%
==========================================
Files 73 73
Lines 4613 4609 -4
==========================================
+ Hits 2590 2591 +1
+ Misses 1772 1767 -5
Partials 251 251
Continue to review full report at Codecov.
|
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.
LGTM
Based on zaquestion#630, it appears that the project no longer wants people to use lab as a replacement for the git command. So we shouldn't recommend to people that the do `alias git=lab`. Update README.md to remove this recommendation.
A few users have been asking about lab's purpose relative to git. The current description of the tool "A Git Wrapper for GitLab" is not accurate and should be updated to reflect that lab is a command line utility for GitLab.
Also, output a warning for git wrapper users -- we know this code is going away in the future and we should be encouraging people to not write scripts that depend on lab's git wrapper.
Signed-off-by: Prarit Bhargava prarit@redhat.com