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

osc mkpac project package #1496

Open
mcepl opened this issue Feb 23, 2024 · 4 comments
Open

osc mkpac project package #1496

mcepl opened this issue Feb 23, 2024 · 4 comments
Labels

Comments

@mcepl
Copy link
Contributor

mcepl commented Feb 23, 2024

Is your feature request related to a problem? Please describe.
Looking at https://youtu.be/EQ5NWsW_tjo is a bit embarrassing to see in the introductory course are users-to-be asked to edit an XML file. That’s just a bad UI right there (actually, it is even unnecessary in this case, because in the very next step they check out the package and project anyway, so they could just turn it around and use even the current osc mkpac, but that isn’t the point here).

Describe the solution you'd like
Add a two-argument call of osc mkpac like this:

osc mkpac project package

which would create a new package in the already existing project on OBS, e.g. osc mkpac home:mcepl foo would create a new package foo in the already existing home:mcepl project.

Actually, we can even add -H option, which would create a new package in the user’s home project, so it would be osc mkpac -H foo in this case, but the other option would allow different projects.

@mcepl mcepl added the Feature label Feb 23, 2024
@dcermak
Copy link
Contributor

dcermak commented Feb 23, 2024

-H is the global flag for http debug, so I'd suggest to skip that

@mcepl
Copy link
Contributor Author

mcepl commented Feb 23, 2024 via email

@dmach
Copy link
Contributor

dmach commented Feb 26, 2024

I remember me struggling with this when I wanted to setup my OBS instance for testing, so 👍

First of all, I need to finish couple more pull requests to move osc.core from ad-hoc XML manipulation to object wrappers.
The wrappers already allow editing XML, I was also thinking about extending the edit mode with adding comments with documentation strings and possibly also commented elements that are not yet used. It might be useful in cases like this.

@smithfarm
Copy link
Member

👍 I hit this, too. As a long-time user of osc, I was surprised to see that mkpac does not understand PROJECT PACKAGE, but only PROJECT/PACKAGE.

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

No branches or pull requests

4 participants