AbGuthrie / goquery

Provide a shell like interface by utilizing osquery's distributed API
MIT License
80 stars 10 forks source link

Make commands take a config pointer #114

Closed obelisk closed 4 years ago

obelisk commented 4 years ago

This was found because the mode command stopped working. It broke because the config structure was passed in by copy instead of reference. I changed the API to be pointers and then tested it and it seems to work now.

I would normally just merge this small fix but because it's an API change would like review from @AbGuthrie

obelisk commented 4 years ago

This should also fix any other bugs we may have with modifying config state. I don't know if there are any other ones currently but this will also let us write commands that enable or disable debug mode