-
Notifications
You must be signed in to change notification settings - Fork 402
add parse capabilities for duration on event command #3214
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
base: main
Are you sure you want to change the base?
add parse capabilities for duration on event command #3214
Conversation
9ec332e to
b10c7aa
Compare
|
Hey, can you rebase and fix the clippy issues? Thanks :) |
|
Updated |
|
@mdaffad Please sign following the instructions in the link |
crates/liboci-cli/src/events.rs
Outdated
|
|
||
| let num = num.parse::<u64>().map_err(|_| "Invalid number")?; | ||
|
|
||
| let dur = match unit.as_str() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if 1h30m?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
e246d2c to
b165eae
Compare
Signed-off-by: Muhammad Daffa Dinaya <muhammaddaffadinaya@gmail.com>
Signed-off-by: Muhammad Daffa Dinaya <muhammaddaffadinaya@gmail.com>
Signed-off-by: Muhammad Daffa Dinaya <muhammaddaffadinaya@gmail.com>
Signed-off-by: Muhammad Daffa Dinaya <muhammaddaffadinaya@gmail.com>
Signed-off-by: Muhammad Daffa Dinaya <muhammaddaffadinaya@gmail.com>
Signed-off-by: Muhammad Daffa Dinaya <muhammaddaffadinaya@gmail.com>
b165eae to
2214ff1
Compare
|
@mdaffad May I ask you to address DCO? |
| keywords = ["youki", "container", "oci"] | ||
|
|
||
| [dependencies] | ||
| parse_duration = "2.1.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we implement it ourselves?
Description
Type of Change
Testing
Related Issues
Close #3206
Additional Context