async fn persist_hub(&self, project: (String, String)) -> Result<(String, String)> {
        let hub_file = self.hub_file.clone().unwrap_or_else(|| {
            // print warning if you provide an alias but have name in Hub.toml
            // (priority concerns)
            if let None = self.alias.clone() {
                print_yellow("WARN: ");
                print_italic("No Hub.toml path provided, looking in root directory\n");
            }
            "".to_string()
        });
        let hub = read_hubfile(hub_file).await?;
        // if hub exist take values from there
        let (app_name, version) = if let Some(p) = hub.parachain.clone() {
            (p.name, p.version)
        } else {
            // or take either alias or project name if none provided
            if let Some(alias) = self.alias.clone() {
                (alias, project.1)
            } else {
                project
            }
        };
        Ok((app_name, version))
    }
/// if Hub.toml is present, use its data over flags
if Hub.toml is present, use its data over flags
if Hub . toml is present use its data over flags
async fn persist_hub(&self, project: (String, String)) -> Result<(String, String)> {
        let hub_file = self.hub_file.clone().unwrap_or_else(|| {
            // print warning if you provide an alias but have name in Hub.toml
            // (priority concerns)
            if let None = self.alias.clone() {
                print_yellow("WARN: ");
                print_italic("No Hub.toml path provided, looking in root directory\n");
            }
            "".to_string()
        });
        let hub = read_hubfile(hub_file).await?;
        // if hub exist take values from there
        let (app_name, version) = if let Some(p) = hub.parachain.clone() {
            (p.name, p.version)
        } else {
            // or take either alias or project name if none provided
            if let Some(alias) = self.alias.clone() {
                (alias, project.1)
            } else {
                project
            }
        };
        Ok((app_name, version))
    }
async fn persist_hub ( & self , project : ( String , String ) ) -> Result < ( String , String ) > { let hub_file = self . hub_file . clone ( ) . unwrap_or_else ( | | { // print warning if you provide an alias but have name in Hub.toml // (priority concerns) if let None = self . alias . clone ( ) { print_yellow ( " " ) ; print_italic ( " \n " ) ; } " " . to_string ( ) } ) ; let hub = read_hubfile ( hub_file ) . await ? ; // if hub exist take values from there let ( app_name , version ) = if let Some ( p ) = hub . parachain . clone ( ) { ( p . name , p . version ) } else { // or take either alias or project name if none provided if let Some ( alias ) = self . alias . clone ( ) { ( alias , project . 1 ) } else { project } } ; Ok ( ( app_name , version ) ) }
if Hub.toml is present, use its data over flags
if Hub . toml is present use its data over flags
&self
project
(String, String)