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

Feature Request: Interactive commandline handling of suggestions and recommendations #965

Open
valuial opened this issue May 27, 2015 · 5 comments
Labels
Cmdline Issues affecting the command line Enhancement New features or functionality Relationships Issues affecting depends, recommends, etc. ★☆☆

Comments

@valuial
Copy link

valuial commented May 27, 2015

There are --with-suggests and --no-recommends but I'd like to be prompted on each suggest and recommend if I want them or not.
My Idea of the behaviour would be as follows:

ckan install --interactive
Asks for both suggestions and recommendations

ckan install --interactive-suggests
Asks for suggestions and handles recommendations as it were (depending on --no-recommends present or not)

ckan install --interactive-recommends
Asks for recommendations and handles suggestions as it were (--with-suggests or not)

ckan install --interactive-recursive
Asks for bot suggestions and recommendations, and for suggestions and recommendations thereof.

@mgsdk mgsdk added Enhancement New features or functionality Cmdline Issues affecting the command line ★☆☆ labels May 27, 2015
@HebaruSan
Copy link
Member

HebaruSan commented Dec 31, 2017

Interactivity is already the default unless --headless is set; I think we should prompt for this without any new command line flags. This probably would have been done already, but there's currently no support for a multi-select menu in Cmdline.

We probably need a new IUser member for multi-select, and then we can migrate GUI's and ConsoleUI's common code for depends/suggests into Core.

@politas
Copy link
Member

politas commented Jan 2, 2018

List the lot, prompt for Recommends/Suggestions (Y)es/(N)o/(I)nteractive, and then prompt each mod separately if "I" is entered?

@HebaruSan
Copy link
Member

Or maybe, "Enter the numbers of the mods you want to install, separated by spaces or commas."
There's got to be a decent way to do it.

@politas
Copy link
Member

politas commented Jan 3, 2018

It's worth noting that apt doesn't even try. It just dumps a list of recommendations, and you can use that list to generate a new install command if you want them

@politas
Copy link
Member

politas commented Jan 3, 2018

The decent way to do it is to use consoleui or gui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cmdline Issues affecting the command line Enhancement New features or functionality Relationships Issues affecting depends, recommends, etc. ★☆☆
Projects
None yet
Development

No branches or pull requests

4 participants