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

Allow installing git repository without adding to pearl.conf #70

Open
breneser opened this issue Dec 18, 2016 · 3 comments
Open

Allow installing git repository without adding to pearl.conf #70

breneser opened this issue Dec 18, 2016 · 3 comments

Comments

@breneser
Copy link

breneser commented Dec 18, 2016

I think it would be really helpful to allow installation of a git repository without having it in pearl.conf as a repository.

pearl install <git-url>

would be really useful.

Having Github organisation/repo as a shorthand script would be really useful as well.

Using

pearl install organisation/repo

would be very helpful.

@fsquillace
Copy link
Member

Thanks @breneser. This sounds a nice improvement.

One possibility to accomplish this would be to have a pearl.conf.d/ directory containing file for each new git repository. Addition and removal of git repositories would still be easy and there would be no interference with the user defined file pearl.conf which will still work seamlessly.

@breneser
Copy link
Author

Firstly, sorry for the issue not being well formatted. I have only just seen contribute documentation.

What would this directory contain ? Repositories pulled that is not in a pearl package repo or in pearl.conf ?

@fsquillace
Copy link
Member

So, the pearl.conf file is a user defined config file, so it should not be managed by the pearl command itself. What I was thinking is to have a directory pearl.conf.d containing a file for each repository the user want to add. For instance, let's take the example in the documentation.

The user can type:

pearl add joe-dotfiles https://github.com/joe/mydotfiles.git "The Joe's dotfiles"

The description will be optional.

The script will create a file ~/.config/pearl/pearl.conf.d/joe-dotfiles containing:

PEARL_PACKAGES["joe-dotfiles"]="https://github.com/joe/mydotfiles.git"
PEARL_PACKAGES_DESCR["joe-dotfiles"]="The Joe's dotfiles"

As you can see management of repositories will be quite easy for pearl command because it correspond to add/remove files from the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants