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: k8.rs
    path of file: ./repos/fluvio/crates/fluvio-cli/src/profile/sync
    
    the code of the file until where you have to start completion: use std::convert::TryInto;

use clap::Parser;
use tracing::debug;
use anyhow::{Result, anyhow};

use fluvio::config::{Profile, ConfigFile};
use fluvio::FluvioConfig;
use k8_config::K8Config;
use k8_client::K8Client;
use k8_client::meta_client::MetadataClient;
use k8_types::core::service::ServiceSpec;
use k8_types::Input
    
fn compute_profile_name() -> Result<String> {
    let k8_config = K8Config::load()?;

    let kc_config = match k8_config {
        K8Config::Pod(_) => return Err(anyhow!("Pod config is not valid here")),
        K8Config::KubeConfig(config) => config,
    };

    if let Some(ctx) = kc_config.config.current_context() {
        Ok(ctx.name.to_owned())
    } else {
        Err(anyhow!("no context found"))
    }
}