class Lutaml::Cli::TreeViewFormatter

def format_operation(op, depth, is_last, prefix)

Format an operation node
def format_operation(op, depth, is_last, prefix)
  return "" if @max_depth && depth >= @max_depth
  op_name = op.name || "(unnamed)"
  connector = is_last ? TREE_CHARS[:last_branch] : TREE_CHARS[:branch]
  icon = ICONS[:operation]
  "#{prefix}#{connector} #{icon} #{colorize("#{op_name}()", :operation)}"
end