parse_kubectl_time

Crates.ioparse_kubectl_time
lib.rsparse_kubectl_time
version0.2.2
sourcesrc
created_at2022-06-10 22:59:07.467751
updated_at2022-06-11 00:25:50.323571
descriptionParse time strings from kubectl commands in seconds, e.g., 2m10s -> 130
homepage
repository
max_upload_size
id603825
size3,502
Joshua Jolley (jcjolley)

documentation

README

Parse Kubectl Time

This is a simple rust program that takes relative time strings in the format output by kubectl and parses them into seconds

For example:

2m10s -> 130 1d2h -> 93600

I wrote this to use as part of a shell function that sorts my kubectl events by when they last occurred

Commit count: 0

cargo fmt