Need to support siegfried options.
The siegfried default.sig is assumed to be in $HOME/siegfried
unless you invoke sf with "-home".
I'm not using the default $HOME/siegfried
for good reasons and use an alias sf="sf -home /shared/homes/mlake/siegfried"
. This is because siegfried does not have a config file as far as I can find.
However when calcyfy runs it invokes sf through a shell using the line below from collection.js:
JSON.parse(shell.exec('sf -nr -json "' + dir + '"', {silent:true}).stdout);
This invokes a shell which does not have any of a users normal aliases or env settings. So for me sf won't work here.
Solution: Using a calcyfy.conf file that can contain a siegfried_home var that can be set to e.g. /shared/homes/mlake/siegfried
and then use shell.exec('sf -home siegfried_home -nr -json "' + ....);
would work but that supports only that option. We need to support general options so maybe a siegfried options var which is a general string shell.exec('sf siegfried_opts -nr -json "' + ....);
Better might be to get siegfried to support a conf file and we can them do a shell.exec('sf -c /path/to/siegfried.conf -nr -json "')