Method: OpenC3::Commands#all_packet_strings
- Defined in:
- lib/openc3/packets/commands.rb
#all_packet_strings(include_hidden = false, splash = nil) ⇒ Object
Returns an array with a “TARGET_NAME PACKET_NAME” string for every command in the system (PACKET_NAME == command name)
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/openc3/packets/commands.rb', line 298 def all_packet_strings(include_hidden = false, splash = nil) strings = [] tnames = target_names() total = tnames.length.to_f tnames.each_with_index do |target_name, index| if splash splash. = "Processing #{target_name} command" splash.progress = index / total end # TODO: This wasn't being used ... should it be # ignored_items = System.targets[target_name].ignored_items packets(target_name).each do |command_name, packet| # We don't audit against hidden or disabled packets/commands next if !include_hidden and (packet.hidden || packet.disabled) strings << "#{target_name} #{command_name}" end end strings end |