George3d6 / Inquisitor

An easily extensible, minimal footprint monitoring tool. (Still in the testing phase)
BSD 2-Clause "Simplified" License
30 stars 4 forks source link

--config flag #27

Closed Deedasmi closed 6 years ago

Deedasmi commented 6 years ago

I think both agent and receptor would benefit from a run time configuration argument. Particularly since building currently overwrites existing configs.

George3d6 commented 6 years ago

Agreed, will have to look into a good library for that. If you have any suggestions, shot.

Deedasmi commented 6 years ago

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.

George3d6 commented 6 years ago

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).

Deedasmi commented 6 years ago

Yeah, probably a Path argument on new to the directory. Let the plugin figure out the specific file though.