Closed Deedasmi closed 6 years ago
Agreed, will have to look into a good library for that. If you have any suggestions, shot.
I've used clap-rs. It's a bit large and has a learning curve, but very feature rich and generates the help flag automatically. It's also maintained by one of the guys behind the cli work group, so he's involved with helping build language infrastructure around cli apps.
Alright, I'll try seeing how easy this is to accomplish using clap for the receptor. The only problem here is that I'd like the plugins' configuration to also be specifiable (in the form a of configuration directory, so I'd have to find a way to send that to plugins, maybe via new).
Yeah, probably a Path argument on new to the directory. Let the plugin figure out the specific file though.
I think both agent and receptor would benefit from a run time configuration argument. Particularly since building currently overwrites existing configs.