Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to clap 3.0 and additional unit test coverage #19

Merged
merged 27 commits into from
Apr 22, 2022
Merged

Migration to clap 3.0 and additional unit test coverage #19

merged 27 commits into from
Apr 22, 2022

Conversation

kiavash-at-work
Copy link
Contributor

@kiavash-at-work kiavash-at-work commented Feb 4, 2022

  • There are some Clap 2.0 functions/features that are now deprecated in Clap 3.0.
  • added Cargo.lock Please add cargo.lock #18.
  • changing version to 0.5.x

@kiavash-at-work
Copy link
Contributor Author

@ashuio , I have started porting the code to clap 3.0 and fixing some TODO. At this stage, it compiles and passes all the unit tests, but I have not done integration tests (we need to automate that too), so for now I am keeping this PR open.

@ashuio
Copy link
Owner

ashuio commented Feb 8, 2022

Thanks for taking the initiative, I'll see how i can help too

@kiavash-at-work kiavash-at-work changed the title Migration to clap 3.0 Migration to clap 3.0 and additional unit test coverage Feb 11, 2022
}
Err(error) => return Err(error.into()),
};
#[derive(Debug, PartialEq)]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converted the zfs module to OO programming to use Struct and Module.

}
//TODO: Modify the trait function to return _Self_ to enable chain actoions: dataset.loadkey(passphrase).mount()
impl Dataset {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functions now are changed to methods.

@kiavash-at-work kiavash-at-work marked this pull request as ready for review February 16, 2022 21:40
@kiavash-at-work
Copy link
Contributor Author

kiavash-at-work commented Feb 16, 2022

These are remaining tasks marked in the code as: TODO

@kiavash-at-work
Copy link
Contributor Author

This PR is ready for merge. I will open new trackers for remaining TODO lists

Additional integration test to cover issue #22. Currently it checks for error message.
@ashuio ashuio merged commit f107b3c into ashuio:master Apr 22, 2022
@ashuio
Copy link
Owner

ashuio commented Apr 22, 2022

Sorry for the delay with the merge, Thanks for your contribution

@ashuio ashuio mentioned this pull request Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants