shakeelmohamed / sublime-splunk-conf-highlighting

Syntax highlighting for Splunk .conf files in Sublime Text 2 & 3
https://packagecontrol.io/packages/Splunk%20Conf%20File%20Syntax%20Highlighting
MIT License
11 stars 6 forks source link

Add support for btool for conf file validation #1

Open shakeelmohamed opened 9 years ago

shakeelmohamed commented 9 years ago

See http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Usebtooltotroubleshootconfigurations

shakeelmohamed commented 9 years ago

I've started work on the feature/btool branch. The big pain right now is not being able to access the $SPLUNK_HOME environment variable. Needs a lot of work to make sure it works on Windows, Linux & ST2.

So far, this is heavily based off of the jshint package: https://github.com/uipoet/sublime-jshint

shakeelmohamed commented 9 years ago

Another idea to consider: invoke the user's default shell, defined as $shell, then run env to see if $SPLUNK_HOME is there