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

local aliases to cabals #70

Closed
hackergrrl opened this issue Sep 6, 2018 · 6 comments
Closed

local aliases to cabals #70

hackergrrl opened this issue Sep 6, 2018 · 6 comments
Labels
enhancement New feature or request

Comments

@hackergrrl
Copy link
Member

It'd be neat if I ran

cabal --key cabal://abcdef123456 --alias friends

and then I could subsequently run

cabal friends

and have that cabal open.

@hackergrrl hackergrrl added the enhancement New feature or request label Sep 6, 2018
@kodedninja
Copy link
Collaborator

kodedninja commented Sep 13, 2018

I wonder if this should be part of cabal or cabal-core within an API for local storage. Opinions?

@todrobbins
Copy link
Member

todrobbins commented Sep 13, 2018

@kodedninja the design would need to be figured out, but giving cabals on Cabal Desktop aliases would be great and probably fit in cabal-core.

@hackergrrl
Copy link
Member Author

hackergrrl commented Sep 13, 2018 via email

@cblgh
Copy link
Member

cblgh commented Sep 13, 2018 via email

@todrobbins
Copy link
Member

@noffle makes a better point 👍

@cblgh
Copy link
Member

cblgh commented Nov 7, 2018

can be implemented in #89's config file as another key aliases that maps a cabal id to an alias.

when starting cabal we will check if there is a config file (locally, or in .cabal). if there is, we will see if the key we were given was in aliases. if it was, we'll join the corresponding cabal:// key. if it wasn't present, we'll assume that what was passed in was a cabal key

cblgh added a commit that referenced this issue Nov 14, 2018
this allows us a cabalist to print out which saved cabal aliases they
have. a good memory aid for the chatting individual

part of #70
@cblgh cblgh closed this as completed in 2e16401 Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants