Skip to content

Commit

Permalink
debug ifno ig
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Aug 23, 2024
1 parent 0e52aae commit e4a1ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/handlers/update_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ pub async fn start(data: Update, client: &Client, config: Config) -> Result<()>
}

let mut version = crate::version::parse_version_type(client, &data.version.unwrap()).await?;
println!("version: {:?}", version);

if !is_version_installed(&version.tag_name, &config).await? {
warn!("{} is not installed.", version.non_parsed_string);
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/version/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use std::path::PathBuf;
/// };
/// println!("The parsed version is {:?}", parsed_version);
/// ```
#[derive(Debug, Clone)]
pub struct ParsedVersion {
pub tag_name: String,
pub version_type: VersionType,
Expand Down Expand Up @@ -56,7 +57,7 @@ pub struct ParsedVersion {
/// VersionType::NightlyRollback => println!("This is a nightly version that has been rolled back."),
/// }
/// ```
#[derive(PartialEq, Eq, Debug)]
#[derive(PartialEq, Eq, Debug, Clone)]
pub enum VersionType {
Normal,
Latest,
Expand Down

0 comments on commit e4a1ecf

Please sign in to comment.