#NEWLINE# def get_all( ) : #NEWLINE# #INDENT# "\n    Return all installed services\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' service.get_all\n    " #NEWLINE# cmd = 'launchctl list' #NEWLINE# service_lines = [ line for line in __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) if ( not line . startswith ( 'PID' ) ) ] #NEWLINE# service_labels_from_list = [ line . split ( '\t' ) [ 2 ] for line in service_lines ] #NEWLINE# service_labels_from_services = list ( _available_services ( ) . keys ( ) ) #NEWLINE# return sorted ( set ( ( service_labels_from_list + service_labels_from_services ) ) )