WP_CLI\CommandWithUpgrade::show_legend PHP Method

show_legend() private method

private show_legend ( $items )
    private function show_legend($items)
    {
        $statuses = array_unique(wp_list_pluck($items, 'status'));
        $legend_line = array();
        foreach ($statuses as $status) {
            $legend_line[] = sprintf('%s%s = %s%%n', $this->get_color($status), $this->map['short'][$status], $this->map['long'][$status]);
        }
        if (in_array(true, wp_list_pluck($items, 'update'))) {
            $legend_line[] = '%yU = Update Available%n';
        }
        \WP_CLI::line('Legend: ' . \WP_CLI::colorize(implode(', ', $legend_line)));
    }