#configuration-language #nushell-plugin #config-parser #hcl #hashi-corp #nushell #config-file

app nu_plugin_hcl

A nushell plugin for parsing Hashicorp Configuration Language file format

9 breaking releases

0.97.1 Aug 21, 2024
0.95.0 Jul 1, 2024
0.90.1 Feb 8, 2024
0.87.1 Nov 29, 2023
0.83.0 Jul 26, 2023

#543 in Configuration

MIT and maybe CC-PDDC

18KB
175 lines

nu_plugin_hcl

This is a nushell plugin to parse Hashicorp Configuration Language files into nu structured types.

Installing

To add the plugin permanently, just install it and call register on it:

Using Cargo

cargo install nu_plugin_hcl
register ~/.cargo/bin/nu_plugin_hcl

Usage

open -r main.tf | from hcl | first 10
╭──────────┬──────────────────╮
 provider │ {record 1 field}
 resource │ {record 1 field}
╰──────────┴──────────────────╯

Dependencies

~26–56MB
~1M SLoC