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

feat: Open application in a repository #12

Merged
merged 3 commits into from Nov 22, 2022
Merged

Conversation

siketyan
Copy link
Owner

Closes #2

After cloned a repository, we often want to open some application such as IDE or editor in the cloned repository directory.
We utilised that in a simple way.

To use this feature, you need to configure applications you want to open first.
The following example shows an application entry opening Visual Studio Code.

[applications.vscode]
cmd = "code"
args = ["%p"]

Note that an argument %p is replaced by the actual repository path.

Now you can use ghr clone --open or ghr open:

ghr clone siketyan/ghr --open vscode
ghr open siketyan/ghr vscode

@siketyan siketyan self-assigned this Nov 22, 2022
# Conflicts:
#	src/cmd/clone.rs
#	src/config.rs
@siketyan siketyan merged commit 6728f83 into main Nov 22, 2022
@siketyan siketyan deleted the feat/open-application branch November 22, 2022 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Open application for the repository directory
1 participant