cabal-cli
cabal-cli copied to clipboard
Display the alias name of cabals when in multi-cabal mode
When using multi-cabal mode, the interface currently display each cabal as their cabal-key (or a short version of it). It makes it hard to distinguish each cabal when joining more than 2.
Suggestion: Display the user selected alias of each cabal instead (or in addition to) their cabal-key.

It looks like cabal aliases don't currently get passed down into cabal-client. If someone wanted to do a fix, I think the steps would look like
- Plumb a new
opts.cabalAliasesparam down intoClientincabal-client, passingconfig.aliasesinto this fromcabal-cli. - Save that arg to
this.cabalAliasesin theClientconstructor. - Plumb any aliases for a cabal down into any
CabalDetailsthat get created as a newoptsparameter. - Expose a cabal's aliases as e.g.
CabalDetails.getAliases(). - Use that new method in
neat-screen.jsincabal-clito render all aliases for that cabal in the info line.