Autodocument vars/features #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When making additional envvars that control the program/code flow like
cac2be7a4fit is important to consider that it is not automatically documenting itself or making itself known in anyway.It might be possible to make a rust function that mandates a documentation string, and that could be printed in some way by the program, imagine
stardust-xr-server --list-vars. The way--list-varscould be populated is by a function likestardustxr_make_featurewhich would take a documentation string and env var as arguments, therefore making it impossible to make an envvar lookup that doesn't document itself and make itself known within the code.Should a
configstruct be introduced that is build fromcli args,env varsandconfig filesto solve this?This struct could easily be (self-) documented and extended. It would also encapsulate all configuration.
There are already proven crates that we could use to achive this, i.e. config and figment.
If there's interest for something like it, I'd be willing to implement a draft PR with this feature.