GithubHelp home page GithubHelp logo

Comments (5)

optiz0r avatar optiz0r commented on September 14, 2024

IMHO, an environment variable akin to EMERGE_DEFAULT_OPTS would be a better fit here, as there's no --dont-ask parameter that can be used to negate the --ask set in the config file otherwise. It's also more flexible to options other than just ask. It would need to be something like EQUO_INSTALL_OPTS rather than for all equo commands, since not every subcommand takes an --ask parameter.

If anyone wants to make this a default option, it can be put into a file in /etc/env.d. To install a package without the default opts from the environment variable, something like env EQUO_INSTALL_OPTS='' equo install foo can be used instead.

from entropy.

mudler avatar mudler commented on September 14, 2024

@schnittchen Thanks for your feedback
In such situations what i tend to do instead is to create system alias functions to specific set/combination of commands that i use daily.

@optiz0r i don't think that's a feature that should be there, i could think an equivalent to EMERGE_DEFAULT_OPTS would make sense but not for EQUO_INSTALL_OPTS, that would open then the door to EQUO_REMOVE_OPTS, EQUO_SEARCH_OPTS and so on with the others equo's commands with the result of just incrementing complexity of code/usage.

Giving another thought: an EQUO_DEFAULT_OPTS don't have a lot of sense to me neither, since most of options are already configurable in the client.conf and the few ones that are not IMHO are not sufficient to promote a global config variable (to cover edge-cases).

going back to the original request, --ask for me shouldn't be default for more than one reasons:

  • historically was always like this, and i do not see here a valid reason to break user habits/scripts
  • equo mimics the emerge command behavior in regards to that, and it is a plus to me (gentoo users will feel more at home)
  • there are other ways you can accomplish the same thing without having it implemented straight into the PM

That being said, an option in the config file to enable that behavour sounds more reasonable to me

from entropy.

jcfrosty avatar jcfrosty commented on September 14, 2024

This is what I agree with.
equo mimics the emerge command behavior in regards to that, and it is a plus to me (gentoo users will feel more at home)

from entropy.

Enlik avatar Enlik commented on September 14, 2024

I don't think it's going to happen, so I'll close the issue. Please also consider that changing something as important as default --ask may be more dangerous than no default --ask in any case. What if someone thinks --ask is enabled in config, but it's not (for any reason), so types equo remove blah and goes to eat supper, comes back and sees no prompt but a bunch of packages removed?

from entropy.

Enlik avatar Enlik commented on September 14, 2024

consider that changing → consider that being able to change (in configuration)

from entropy.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.