You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a repo from this template. Renamed the repo to 'tfdocs-format-custom'. And made the following changes.
diff --git a/Makefile b/Makefile
index b531e2c..43bc6b1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-BUILD_NAME := tfdocs-format-template
+BUILD_NAME := tfdocs-format-custom
BUILD_DIR := bin
PLUGIN_FOLDER ?= ~/.tfdocs.d/plugins
@@ -21,4 +21,4 @@ install: build
mkdir -p $(PLUGIN_FOLDER)
mv ./$(BUILD_DIR)/$(GOOS)-$(GOARCH)/$(BUILD_NAME) $(PLUGIN_FOLDER)
-.PHONY: all clean verify build install help
\ No newline at end of file
+.PHONY: all clean verify build install help
diff --git a/main.go b/main.go
index b278cbc..7c975e8 100644
--- a/main.go
+++ b/main.go
@@ -47,5 +47,5 @@ func printerFunc(config *print.Config, module *terraform.Module) (string, error)
return "", err
}
- return rendered, nil
+ return "SOME NEW OUTPUT" + rendered, nil
}
I then ran make install, which put the executable in ~/.tfdocs.d/plugins/tfdocs-format-custom. I then create my config in
.config/.terraform-docs.yaml, and set the formatter: "custom". I then ran terraform-docs via terraform-docs markdown table --output-file README.md . Unfortunately, the generated README.md does not contain "SOME NEW OUTPUT". I know it read my config file because I change other things in .config/.terraform-docs.yaml and it will have effect.
Am I missing a step here?
The text was updated successfully, but these errors were encountered:
I can't seem to get my plugin called.
I created a repo from this template. Renamed the repo to 'tfdocs-format-custom'. And made the following changes.
I then ran
make install
, which put the executable in~/.tfdocs.d/plugins/tfdocs-format-custom
. I then create my config in.config/.terraform-docs.yaml, and set the
formatter: "custom"
. I then ran terraform-docs viaterraform-docs markdown table --output-file README.md .
Unfortunately, the generated README.md does not contain "SOME NEW OUTPUT". I know it read my config file because I change other things in.config/.terraform-docs.yaml
and it will have effect.Am I missing a step here?
The text was updated successfully, but these errors were encountered: