fyrer 0.2.0

A lightweight tool to run multiple dev servers concurrently
1
2
3
4
5
6
7
8
9
10
11
use crate::config::Service;
use crate::spawn_service::spawn_service;
use crate::watcher::run_with_watch;

pub async fn runner(service: Service, color: colored::Color, max_name_len: usize) {
    if service.watch.unwrap_or(false) {
        run_with_watch(service, color, max_name_len).await;
    } else {
        spawn_service(&service, color, true, max_name_len).await;
    }
}