choria-io / appbuilder

Tool to create friendly wrapping command lines over operations tools
Apache License 2.0
104 stars 4 forks source link

Consider adding an awk transform #74

Open ripienaar opened 2 years ago

ripienaar commented 2 years ago

This can be done using https://github.com/benhoyt/goawk which could support CSV/TSV as well

netserf commented 2 years ago

@ripienaar - I watched your YouTube video. I was thinking the exact same thing about awk support.

I love what you've done so far with AppBuilder!

ripienaar commented 2 years ago

Thank you :)

The other transforms are things you dont get on basically every machine - awk is everywhere, so return on investment is smaller.

transform:
  line_graph:
    caption: First Things

script: |
  ./thing.sh | awk '{print $1}'

However I do like the idea so might do it stil, this issue was filed before I added script and transform pipelines

gedw99 commented 2 years ago

https://github.com/benhoyt/goawk :)

A POSIX-compliant AWK interpreter written in Go, with CSV support

Might be worth a look

ripienaar commented 2 years ago

@gedw99 as mentioned in the issue yes :)