https://github.com/jacobious52/from-go-duration
https://github.com/jacobious52/from-go-duration
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobious52/from-go-duration
- Owner: Jacobious52
- Created: 2022-11-30T06:08:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T06:13:30.000Z (over 3 years ago)
- Last Synced: 2025-01-18T05:09:03.166Z (over 1 year ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# from-go-duration
tiny helper for parsing go durations in nu shell
# wrap in a nu func
```nu
def "from go-duration" [] {
$in | from-go-duration | complete | get stdout | into duration
}
```
## example
```nu
k get node | detect columns | update AGE {|it| $it.AGE | from go-duration } | sort-by AGE -r
```