sgoudham/git-view

View remote directories

Closed this issue · 1 comments

Description

We want to allow users to be able to open their current directory remotely OR any type of directory/file as an argument.

Acceptance Criteria

Given that a user is currently in the directory src/bin on the repository sgoudham/git-view AND is on the branch main
When the user invokes git view --path
Then the following URL should be opened on the browser https://github.com/sgoudham/git-view/tree/main/src/bin

Given that a user is in any directory on the repository sgoudham/git-view AND is on the branch main
When the user invokes git view --path src/lib.rs
Then the following URL should be opened on the browser https://github.com/sgoudham/git-view/tree/main/src/lib.rs

(Note that https://github.com/sgoudham/git-view/tree/main/src/lib.rs will automatically be converted to https://github.com/sgoudham/git-view/blob/main/src/lib.rs by GitHub

With the addition of these new commands, I think it's the better decision to drop support for bitbucket URLs as I'm not very familiar with them. However, still TBD