zaquestion / lab

Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
https://zaquestion.github.io/lab
Creative Commons Zero v1.0 Universal
1.1k stars 103 forks source link

cmd/project_browse.go: Add --file and --branch options #869

Closed prarit closed 11 months ago

prarit commented 11 months ago

@sding3 has requested the ability to browse to a specific file using a --file argument. In addition to this I think it is a good idea to also add a --branch argument so users can browse a file on a specific branch.

Add --file and --branch options.

Close #866

codecov[bot] commented 11 months ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.37 :tada:

Comparison is base (cce34e2) 55.25% compared to head (f4c0f8d) 55.62%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #869 +/- ## ========================================== + Coverage 55.25% 55.62% +0.37% ========================================== Files 82 82 Lines 5961 5977 +16 ========================================== + Hits 3294 3325 +31 + Misses 2380 2364 -16 - Partials 287 288 +1 ``` | [Impacted Files](https://app.codecov.io/gh/zaquestion/lab/pull/869?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zaq%3F+Wiedmann) | Coverage Δ | | |---|---|---| | [cmd/project\_browse.go](https://app.codecov.io/gh/zaquestion/lab/pull/869?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zaq%3F+Wiedmann#diff-Y21kL3Byb2plY3RfYnJvd3NlLmdv) | `100.00% <100.00%> (ø)` | | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/zaquestion/lab/pull/869/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Zaq%3F+Wiedmann)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.