sgoudham
ead99f0f3d
chore: fix rustfmt
1 year ago
sgoudham
52e0e821c7
refactor!: throw error when missing default branch
...
BREAKING CHANGE: Previously, the missing default
branch was ignored and the user given branch was
used which resulted in a 404.
This commit makes it so that it throws up an error
instead of letting the user see the 404.
1 year ago
sgoudham
11d7470451
refactor: add info message for `--branch`
...
This option only works when users have
local branches that are set up to track
remotes.
The user may be confused if they are trying
to view a branch that only exists on the remote
and not locally.
This commit adds a useful info message to
inform the user that this branch is not
tracked locally and instead is defaulting
to the default remote.
1 year ago
sgoudham
a6cfa67b40
refactor: `--print` help message
1 year ago
sgoudham
3335011f6d
refactor!: remove `--suffix` & revamp help
...
BREAKING-CHANGE: I couldn't decide on the
semantics of what this command should have
so, instead, I've opted to remove it.
1 year ago
sgoudham
98cbfcc226
refactor: improve usage docs & help
1 year ago
sgoudham
367c1421bb
refactor: fix trailing slashes in `--path`
1 year ago
sgoudham
41ad13e569
feat: implement `--path` option
...
closes #3
1 year ago
sgoudham
3f9c7bd376
feat: allow args for `--issue`
...
closes #2
1 year ago
sgoudham
60e5a22d25
refactor: Tidy up code
...
- Remove unnecessary comments
- Remove unused 'mut'
1 year ago
Hamothy
f6a6c7f27c
refactor( #4 )!: Drop support for BitBucket URLs
...
BREAKING CHANGE: This removes support for BitBucket URLs
as I am not well versed with them to robustly support it
closes #4
1 year ago
sgoudham
af001e002a
fix: Change commit from 'latest' to 'current'
2 years ago
sgoudham
efa38be50a
refactor: Reformat '-h' flag output
2 years ago
sgoudham
8bb5abe048
refactor: Move GitViewBuilder into module 'lib_tests'
2 years ago
sgoudham
b5572a5adc
feat: Add support for suffix
2 years ago
sgoudham
7a5afc7354
feat: Add support for BitBucket repositories
2 years ago
sgoudham
d930d7992f
refactor: Change 'to_owned()' to 'into()'
2 years ago
sgoudham
ddf02376c3
test: Add tests for 'get_git_url'
2 years ago
sgoudham
80465ec514
feat: Open default remote branch if no upstream exists
2 years ago
sgoudham
ba0eb0f315
test: Add tests for populate_remote()
2 years ago
sgoudham
784aee17d3
refactor: Implement functionality to retrieve git default branch
2 years ago
sgoudham
53706585a2
test: Add tests for get_local_ref()
2 years ago
sgoudham
6e1ecf3657
feat: Add functionality to open issue links
2 years ago
sgoudham
9426dec6ce
feat: Add functionality for opening commit hashes
2 years ago
sgoudham
f830f914c5
refactor: Add GitTrait to allow for easier testing
2 years ago
sgoudham
7be0788dc7
refactor: Add issue argument and start generating final url
2 years ago
sgoudham
ba6e9cf95a
feat: Add argument 'issue' to open issues
2 years ago
sgoudham
ac48831a86
refactor: No need to store domain string in enum
2 years ago
sgoudham
de446012c1
refactor: Use Cow<'_, str> and Url/Domain structs
2 years ago
sgoudham
34cb2b6ff5
refactor: Add Url & Domain structs
2 years ago
sgoudham
8f7210a17e
refactor: Don't map to String anymore
2 years ago
sgoudham
95953b87f3
refactor: Perform massive refactor
2 years ago
sgoudham
c71a9d22a7
test: Add unit tests for 'parse_git_url()'
2 years ago
sgoudham
26d9e5bd09
feat: Parse URL & (naively) open the url in the browser
3 years ago
sgoudham
ce4138712e
refactor: Use 'AppError' for propagation to clap
3 years ago
sgoudham
c632965a2a
refactor: Add 'AppError' to allow cleaner propagation of different errors
3 years ago
sgoudham
9011c18d49
feat: Parse URL in a robust way & start adding tests
3 years ago
sgoudham
cdaab08594
feat: Ensure that arguments are correctly parsed
3 years ago
sgoudham
5f0f2fff54
build: Update 'git-browser' to 'git-view'
3 years ago
sgoudham
b46891e841
feat: Add MVP git-browser
...
Given no arguments, this version opens up the remote git repository on
the main branch
3 years ago
sgoudham
e11e88b02b
refactor: Setup git-remote walking skeleton
3 years ago