logType method

LinioLogType logType(
  1. ArgResults linioCommand
)

Implementation

LinioLogType logType(ArgResults linioCommand) {
  LinioLogType linioLogType = LinioLogType.static;
  switch (linioCommand['mode']) {
    case 'l':
    case 'live':
      linioLogType = LinioLogType.live;
      break;
    case 's':
    case 'static':
      linioLogType = LinioLogType.static;
      break;
  }
  return linioLogType;
}