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

Provide way to add/delete/clear tags #56

Open
AnWeber opened this issue Sep 24, 2022 · 2 comments
Open

Provide way to add/delete/clear tags #56

AnWeber opened this issue Sep 24, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@AnWeber
Copy link

AnWeber commented Sep 24, 2022

Is your feature request related to a problem? Please describe

I use mani to manage a lot of repositories. Since I also frequently change my working/ active repositories, I would like to simply define "active" tagged projects where I can execute tasks faster (mani run --tags active ...). I want to prevent to execute some long running tasks on not needed projects.

Describe the solution you'd like

I would like to have extended the CLI which supports CRUD methods for tags (similar to kubectl, kubectl get/create/delete deplyoments )

  • mani add tag <tag> --project - add tag to project in mani.yaml. --project is optional and could also be retrieved using current dir (compare with project dir)
  • mani remove tag <tag> --project - remove tag of project in mani.yaml. --project is optional and could also be retrieved using current dir (compare with project dir)
  • mani clear tag <tag> remove tag of all projects

Additional context

  • That the YAML parser removes the comments (addressed in Provide a way to add projects.  #43) is not important for my use case. A setting allowAutomaticOverride: true could be added to the mani.yaml. If this setting is not present, the tag is not added and a warning message is displayed with a hint for this setting. If it is true, override of mani.yaml is accepted.
  • The feature can also be implemented without mani change. Necessary helper methods can be implemented easily. But I would find a support in the context of mani handy, but time consuming to implement.

Off Topic

I was looking for a tool to easily manage my repos, but everyone was forcing me in a direction I didn`t want. mani is very flexible and a great timesaver. Therefore a big thank you.

@AnWeber AnWeber added the enhancement New feature or request label Sep 24, 2022
@alajmo
Copy link
Owner

alajmo commented Sep 25, 2022

I like this feature, but as mentioned in the other issue, it's quite a complex task and I wouldn't want to add the allowAutomaticOverride since people would first stumble upon the mani clear tag command and try to do it, then get hit with a warning that it's not possible, so it's not the most UX friendly. I would like for it to work with comments as well, and perhaps with some work it could:

However, my bandwidth is limited at the moment, I'm focusing on https://github.com/alajmo/sake at the moment, but after it's done, I will port back a lot of changes and will then perhaps start working with this feature, unless you're open to working on this then I'm happy to discuss how to implement this.

@AnWeber
Copy link
Author

AnWeber commented Sep 25, 2022

More time would always be nice. But thanks for including it in the backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants