-
Notifications
You must be signed in to change notification settings - Fork 124
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
why not xbp install , xbp query or xbp remove ? #601
Comments
#!/bin/sh
bin="$1"
shift
exec "xbps-$bin" "$@" no python needed |
In that case a simple naive implementation can be done with alias command too, but that is not my point. The last line of my previus post was: From my point a naive wraper approch is a workarround compare to a cosolidate human interface Then i propose a python PoC of a User Interface, with a SHELL>Read–eval–print loop it will permit easy dev for future TUI / GUI. The modular approch of xbps permit to make a robust human interface ready to be use by TUI/GUI as backend. Regards |
Probably not what you're looking for, but I've written a little something at https://github.com/fearlessgeekmedia/xbpsman |
Thanks for you response.
The final target look really close yes, We clearly look for the same type of end result ... (should not divide our strong) Actually i propose a backend UI Interface for permit TUI/GUI frontal, because if it backend componant do not exist the difficulty will be push near the fronted, and that is not a good practice. From my point a backend like that should use a event bus signal, that let allway the UI responssive on front of the human user. The conversion CLI to TUI/GUI is in general a simple event bus message wrapper as backend, and a TUI/GUI it consume they events. All the game will be to not have strange dependencies. i permit warning about xbpsman: OK it week end i'll focus to my PoC and send you results. Regards |
I have take a look , The more close i have found was done for xbps ansible module: done by it code: that is a static binding .... Without a xbps CLI wrapper entry point, a TUI/GUI application must include a huge backend for a huge static binding. The xbps wrapper CLI entry point should be native to xbps project for have a luck to maintain a SDK for TUI/GUI over the time. Hope other one will understand the necessary of a XBPS Common Interface for GUI/TUI developpement |
You should write a PackageKit backend if you want xbps to integrate into existing GUI package managers. Anything custom will only be used by a couple projects and incompatible with the rest of the world. |
@classabbyamp got you point , and 100% agrea . If the final target is GUI Package Manager PackageKit is the way. Unfortunally due to GUI need PackageKit have long chain dependencies, polkit, dbus , etc ... (XDG), but clearly that is the common stack for graphic desktop. I more thing an eventual For a TUI a static binding over a single entry point Anyway thanks for you response. My offer is still active, i can create a POC of a single entry point of In fact i dont know what is the best approch, i see an inegration lake and try to go a head. |
xbps packagekit have all ready been adressed: Annonced here: The trouble with PackageKit is the depencency to Dbus and Polkit .... in case i'll wait for a Packagekit supprot then make my TUI coupled with pkcon. Continue to think about an eventual xbps wrapper command line , will be a better canditade , and will limit dependencies. |
Wrong, scripts calling package manager has to know meaning of bytes whether there is single or multiple binaries. Pacman has single binary and its ansible module is longer.
Approach used there is wrong and won't be merged. Some other PackageKit backend that calls binaries would still be useful.
This seems to be main misunderstanding. There exist gui for xbps, octoxbps, that uses existing commands. It was created in 2016, then adjusted once in 2020 for how xbps-self updates (that single-entry would unlikely protect from), and continues to work fine. |
I'm motivate to code a xbps wapper command, but before anything i asking why it's not all ready the case.
Look command set of xbps permit a easy refactoring, by create a frontal command for pilot each others.
That is not a tonne of work and i all ready have make it with succes with python, argparse and CMD.
The goal look simple: have a unique entry point call xbp where the args determine which command will be use.
Exemple
xbp install toto == xbps-install toto
xbp query -Rs toto == xbps-query -Rs toto
etc etc...
where/when my idea it is good for final user ?
by use CMD coupled with argparse we can have :
Look magique but that not so hard to do...
If that feature look good , and look to save the world for fews i can propose a python proof of concpet.
I not suppose to be the only one it have speack about it, it have a technical raison or a political raison for that ?
I'm not sure about python will be the best choose for it, but as PpC why not.
Regards
The text was updated successfully, but these errors were encountered: