cbowdon / daemons.el

An Emacs UI for managing init system services
GNU General Public License v3.0
102 stars 12 forks source link

Brew: warnings in `brew services list` break parsing #25

Closed camdez closed 2 years ago

camdez commented 2 years ago

Under some circumstances, brew services list's output may contain "Warning" lines which break this package's ability to parse the output.

For example, my current output of the command is:

Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the lucagrulla/tap tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/lucagrulla/homebrew-tap/Formula/cw.rb:9

Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the polyfy/polylith tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/polyfy/homebrew-polylith/Formula/poly.rb:8

Name        Status  User   File
offlineimap started camdez ~/Library/LaunchAgents/homebrew.mxcl.offlineimap.plist
redis       stopped        
syncthing   started camdez ~/Library/LaunchAgents/homebrew.mxcl.syncthing.plist
unbound     stopped        

(FWIW, these lines are printed to STDERR, but still are included in the text returned by daemons--shell-command-to-string.)

PR to follow promptly.

cbowdon commented 2 years ago

Thanks! :pray: