handleCommands method

Future<void> handleCommands(
  1. HttpServer server
)

Handles commands for the server, such as starting or stopping the server.

Implementation

Future<void> handleCommands(HttpServer server) async {
  var welcomeFinch = [
    "",
    r"     ¸    ┬─┐        ┬",
    r"    (@)>  ├─ . ┬─┐┌─ ├─┐",
    r"  >(/\)   ┴  ┴ ┴ ┴└─ ┴ ┴",
    r"    ┴┴    v" "${info.version}",
  ];

  CappConsole.write(welcomeFinch.join('\n'));

  await _runCommands(_args);
}