package nl.rvdv.nntp.commands

import nl.rvdv.nntp.{Connection, Response}

class GroupCommand(name:String, connection: Connection) {
  def execute {
    val response: Response = connection.sendCommand(s"GROUP $name\r\n")
    println(s"Received: ${response.message} [${response.code}]")
  }
}
