lsp-cli 0.1.6

Command-line tool for talking to Language Server Protocol (LSP) servers from the terminal.
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "OrderFormatter.hpp"

#include <sstream>

std::string format_order(Order *order) {
  if (order == nullptr) {
    return "empty order";
  }
  std::ostringstream output;
  output << [order customer] << " has " << [order items].size()
         << " items worth " << [order total];
  return output.str();
}