You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LaunchAgent.keepAlive in its current form can only accept a Bool, but I have encountered the following case where a simple true is not enough since I have to distinguish between zero and non-zero exit codes (a very well-written rationale can be found at https://github.com/tjluoma/launchd-keepalive#launchd-keepalive).
In short, this KeepAlive field has to look like this if I want to follow the best practice:
Is it possible to use an enum or something for the type of this field? I'm not that familiar with Swift, but if it is a minor change, maybe I can do something about it... 🙏
The text was updated successfully, but these errors were encountered:
It should be possible to support the extended KeepAlive options. It looks like there are a bunch of nested options that will need to be modeled so they're both Swift-y and encode into a valid plist. If you'd like to take a swing at it feel free, I'll also see what I can come up with as I have time.
Thanks a lot for making this wonderful library!
LaunchAgent.keepAlive
in its current form can only accept aBool
, but I have encountered the following case where a simpletrue
is not enough since I have to distinguish between zero and non-zero exit codes (a very well-written rationale can be found at https://github.com/tjluoma/launchd-keepalive#launchd-keepalive).In short, this
KeepAlive
field has to look like this if I want to follow the best practice:Is it possible to use an
enum
or something for the type of this field? I'm not that familiar with Swift, but if it is a minor change, maybe I can do something about it... 🙏The text was updated successfully, but these errors were encountered: