def create_new_profile(project_root, profile_name, profile_base_path)
      # Clean the profile_path to make it a valid path
      profile_base_path = Bebox::Profile.cleanpath(profile_base_path)
      # Check if the profile name is valid
      return unless name_valid?(profile_name, profile_base_path)
      # Check if the profile exist
      profile_path = profile_base_path.empty? ? profile_name : profile_complete_path(profile_base_path, profile_name)
      return error(_('wizard.profile.name_exist')%{profile: profile_path}) if profile_exists?(project_root, profile_path)
      # Profile creation
      profile = Bebox::Profile.new(profile_name, project_root, profile_base_path)
      output = profile.create
      ok _('wizard.profile.creation_success')%{profile: profile_path}
      return output
    end
def create_new_profile(project_root, profile_name, profile_base_path)
      # Clean the profile_path to make it a valid path
      profile_base_path = Bebox::Profile.cleanpath(profile_base_path)
      # Check if the profile name is valid
      return unless name_valid?(profile_name, profile_base_path)
      # Check if the profile exist
      profile_path = profile_base_path.empty? ? profile_name : profile_complete_path(profile_base_path, profile_name)
      return error(_('wizard.profile.name_exist')%{profile: profile_path}) if profile_exists?(project_root, profile_path)
      # Profile creation
      profile = Bebox::Profile.new(profile_name, project_root, profile_base_path)
      output = profile.create
      ok _('wizard.profile.creation_success')%{profile: profile_path}
      return output
    end
Create a new profile