You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: portforwards.rs
    path of file: ./repos/click/src/command
    
    the code of the file until where you have to start completion: // Copyright 2021 Databricks, Inc.

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use clap::builder::ValueParser;
use clap::error::{Error, ErrorKind};
use clap::{Arg, Command as ClapCommand};
use comfy_table::{Cell, CellAlignment, Table}
    
fn print_pfs(pfs: std::slice::IterMut<env::PortForward>, writer: &mut ClickWriter) {
    let mut table = Table::new();
    let mut empty = true;
    table.set_header(vec!["####", "Pod", "Ports", "Status"]);
    for (i, pf) in pfs.enumerate() {
        let mut row = Vec::new();
        row.push(Cell::new(format!("{i}").as_str()).set_alignment(CellAlignment::Right));
        row.push(Cell::new(pf.pod.as_str()));
        row.push(Cell::new(pf.ports.join(", ").as_str()));

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

        table.add_row(row);
        empty = false;
    }
    if empty {
        clickwriteln!(
            writer,
            "No active port forwards, see `port-forward -h` for help creating one"
        );
    } else {
        crate::table::print_filled_table(&mut table, writer);
    }
}