-
Notifications
You must be signed in to change notification settings - Fork 123
Command-line tooling in C #4431
Comments
Thank you for creating the issues! (In particular #4432 is very good work, I see you are already diving into Elektra! 🚀). Some comments about the list above:
In the list above, foundational parts are missing (the ones that do not have a command by itself). Have a look in the source folder https://master.libelektra.org/src/tools/kdb what these foundation parts could be. Without any guarantee on completeness:
Coordination work can be done, as necessary, in the issues and also in the meetings all three weeks. Btw. it would be nice if the source files are named like the command, so Btw2. have a look at #539. There should be some way with our gopts to do such things (I am not sure if/how POSIXLY_CORRECT is supported). Please add test more cases for Another feature we might want to solve in this reimplementation is #1610. It needs, however, first some library support. So let us keep this in the background as nice-to-have. Then there is the question what should happen with |
To add to this: coloring should only happen, when outputting to a TTY (see
If we go with nested commands (#539), we could also use a folder structure (e.g.
See examples/goptsCommands.c for example code. It's also explained in the docs. As explained in the docs, when using sub-commands the position of options like
Yeah, I don't think rewriting If we want to get rid of the C++ code in the long run, we could switch to Rust. In a quick search I found https://github.com/sunng87/handlebars-rust, which is a library for Handlebars templates (which should be mostly compatible with our Mustache templates, i.e. require little to no change in the templates). The Rust code could be put into a (self-contained) library and called via a C API. Rewriting the |
@markus2330 Maybe the code for some subcommands can also be rewritten as part of the FLOSS course. |
I don't think that without the framework as basis anything can be done by someone else than @hannes99. |
We should add the C tooling as an alternative tool, I think we can call it ckdb. |
I mark this stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping by writing a message here or create a new issue with the remainder of this issue. |
Rewrite the
kdb
cli tool fromC++
toC
.Subcommands
mergeRelated issues that should be solved in the process
kdb
#4024The text was updated successfully, but these errors were encountered: