local aliases to cabals
hackergrrl opened this issue · comments
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.
I wonder if this should be part of cabal or cabal-core within an API for local storage. Opinions?
@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.
@noffle makes a better point 👍
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