Git Product home page Git Product logo

Comments (6)

Erich-McMillan avatar Erich-McMillan commented on September 22, 2024

I think I'm more in favor of the following:

groups:
  - name: group1
    default: true
    members:
      - a
      - b
 - name: group2
   members:
    - c

Though I don't recall if yml supports optional parameter format like this.

Should gitman install accept both 'group1' and 'default' as inputs? i.e. gitman install == gitman install default == gitman install group1

from gitman.

brandonaut avatar brandonaut commented on September 22, 2024

I'm ok with that too. However, by having a separate field to specify the default group, we bypass having to deal with a situation where default: true is set for multiple groups.

from gitman.

Erich-McMillan avatar Erich-McMillan commented on September 22, 2024

Have a work-in-progress which meets the requirements of this feature request: https://github.com/Erich-McMillan/gitman/tree/feature/236-default-group. Only issue so far is that if an existing gitman.yml does not already have default_group property then a default item is added automatically as default_group: '' which will default back to installing all sources on gitman install.

from gitman.

brandonaut avatar brandonaut commented on September 22, 2024

I don't really see that as an issue. It makes the new feature explicit, but doesn't change existing behavior. Win-win!

from gitman.

Erich-McMillan avatar Erich-McMillan commented on September 22, 2024

@brandonaut have a proposed solution to add your feature request in this PR #237. Since I sent you a test exe and these changes met your requirements we are just waiting on feedback from @jacebrowning.

from gitman.

jacebrowning avatar jacebrowning commented on September 22, 2024

This functionality is available in this beta release: https://pypi.org/project/gitman/2.2b4/

from gitman.

Related Issues (20)

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.