steampipe icon indicating copy to clipboard operation
steampipe copied to clipboard

Add support for mod.sp formating

Open remyleone opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

I sometimes have consistency in formatting with my mod.sp. I would like to have a format subcommand in the steampipe binary that would handle that for me.

Describe the solution you'd like

steampipe mod fmt or any other formatting sub command in the steampipe binary

Describe alternatives you've considered

Using terraform but it does not allow for sp file extensions

Additional context Add any other context or screenshots about the feature request here.

remyleone avatar Jan 23 '24 13:01 remyleone

FYI. I use https://github.com/hashicorp/hcl/tree/main/cmd/hclfmt as alternative. *.sp and *.spc files are written in HCL so that hclfmt works.

go install github.com/hashicorp/hcl/v2/cmd/hclfmt@latest

find . -name '*.sp' | xargs hclfmt -w 
find . -name '*.spc' | xargs hclfmt -w 

k-kawa avatar Feb 29 '24 03:02 k-kawa

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Apr 29 '24 08:04 github-actions[bot]

This issue was closed because it has been stalled for 90 days with no activity.

github-actions[bot] avatar May 30 '24 08:05 github-actions[bot]