turbot / steampipe-plugin-csv

Use SQL to instantly query data from CSV files. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/csv
Apache License 2.0
19 stars 4 forks source link

paths must be configured #1

Closed judell closed 2 years ago

judell commented 2 years ago

I built the plugin, "installed" by copying csv.spc to ~/.steampipe/config, and boiled csv.spc down to this:

connection "csv" {
  plugin = "csv"

  paths = [ "~/csv/*" ]

When I reach for .inspect in the cli it thinks no paths are configured. There are csv files in ~/csv.

What am I missing?

e-gineer commented 2 years ago

I think the ~ is the problem ... suspect we need to expand the home dir. Funny enough, @RyanJarv opened a pull request for this in the GCP plugin today - https://github.com/turbot/steampipe-plugin-gcp/pull/312/files

For now, please try again with a fully qualified path.

judell commented 2 years ago

That was it. I thought I had tried /home/jon as well, but evidently not, it does indeed work.

This is awesome stuff.