fn print_pfs(pfs: std::slice::Iter<::PortForward>) {
    let mut table = Table::new();
    table.set_titles(row!["####", "Pod", "Ports"]);
    for (i, pf) in pfs.enumerate() {
        let mut row = Vec::new();
        row.push(Cell::new_align(
            format!("{}", i).as_str(),
            format::Alignment::RIGHT,
        ));
        row.push(Cell::new(pf.pod.as_str()));
        row.push(Cell::new(pf.ports.join(", ").as_str()));

        // TODO: Add this when try_wait stabalizes
        // let status =
        //     match pf.child.try_wait() {
        //         Ok(Some(stat)) => format!("Exited with code {}", stat),
        //         Ok(None) => format!("Running"),
        //         Err(e) => format!("Error: {}", e.description()),
        //     };
        // row.push(Cell::new(status.as_str()));

        table.add_row(Row::new(row));
    }
    table.set_format(TBLFMT.clone());
    table.printstd();
}
/// Print out port forwards found in iterator
Print out port forwards found in iterator
Print out port forwards found in iterator
fn print_pfs(pfs: std::slice::Iter<::PortForward>) {
    let mut table = Table::new();
    table.set_titles(row!["####", "Pod", "Ports"]);
    for (i, pf) in pfs.enumerate() {
        let mut row = Vec::new();
        row.push(Cell::new_align(
            format!("{}", i).as_str(),
            format::Alignment::RIGHT,
        ));
        row.push(Cell::new(pf.pod.as_str()));
        row.push(Cell::new(pf.ports.join(", ").as_str()));
        // TODO: Add this when try_wait stabalizes
        // let status =
        //     match pf.child.try_wait() {
        //         Ok(Some(stat)) => format!("Exited with code {}", stat),
        //         Ok(None) => format!("Running"),
        //         Err(e) => format!("Error: {}", e.description()),
        //     };
        // row.push(Cell::new(status.as_str()));
        table.add_row(Row::new(row));
    }
    table.set_format(TBLFMT.clone());
    table.printstd();
}
fn print_pfs ( pfs : std :: slice :: Iter < :: PortForward > ) { let mut table = Table :: new ( ) ; table . set_titles ( row ! [ " " " " " " ] ) ; for ( i , pf ) in pfs . enumerate ( ) { let mut row = Vec :: new ( ) ; row . push ( Cell :: new_align ( format ! ( " " i ) . as_str ( ) , format :: Alignment :: RIGHT , ) ) ; row . push ( Cell :: new ( pf . pod . as_str ( ) ) ) ; row . push ( Cell :: new ( pf . ports . join ( " " ) . as_str ( ) ) ) ; // TODO: Add this when try_wait stabalizes // let status = //     match pf.child.try_wait() { //         Ok(Some(stat)) => format!("Exited with code {}", stat), //         Ok(None) => format!("Running"), //         Err(e) => format!("Error: {}", e.description()), //     }; // row.push(Cell::new(status.as_str())); table . add_row ( Row :: new ( row ) ) ; } table . set_format ( TBLFMT . clone ( ) ) ; table . printstd ( ) ; }
Print out port forwards found in iterator
Print out port forwards found in iterator
pfs
std::slice::Iter<::PortForward>
pfs
std::slice::Iter<::PortForward>