diff --git a/Dockerfile b/Dockerfile index 2ff6349..ff2b5b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,11 @@ +# Copyright 2021 The terraform-docs Authors. +# +# Licensed under the MIT license (the "License"); you may not +# use this file except in compliance with the License. +# +# You may obtain a copy of the License at the LICENSE file in +# the root directory of this source tree. + FROM golang:1.15.6-alpine AS builder RUN apk add --update --no-cache ca-certificates bash make gcc musl-dev git openssh wget curl diff --git a/Makefile b/Makefile index b0fe6c6..96f5709 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,11 @@ +# Copyright 2021 The terraform-docs Authors. +# +# Licensed under the MIT license (the "License"); you may not +# use this file except in compliance with the License. +# +# You may obtain a copy of the License at the LICENSE file in +# the root directory of this source tree. + # Project variables NAME := terraform-docs VENDOR := terraform-docs diff --git a/README.md b/README.md index 82c2c13..0da0f75 100644 --- a/README.md +++ b/README.md @@ -93,4 +93,4 @@ This project was originally developed by [Segment](https://github.com/segmentio/ ## License -MIT License - Copyright (c) 2020 The terraform-docs Authors. +MIT License - Copyright (c) 2021 The terraform-docs Authors. diff --git a/cmd/asciidoc/asciidoc.go b/cmd/asciidoc/asciidoc.go index f90e691..554f7fe 100644 --- a/cmd/asciidoc/asciidoc.go +++ b/cmd/asciidoc/asciidoc.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package asciidoc import ( diff --git a/cmd/asciidoc/document/document.go b/cmd/asciidoc/document/document.go index f3f7511..8c517be 100644 --- a/cmd/asciidoc/document/document.go +++ b/cmd/asciidoc/document/document.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package document import ( diff --git a/cmd/asciidoc/table/table.go b/cmd/asciidoc/table/table.go index dca6465..74cc6c8 100644 --- a/cmd/asciidoc/table/table.go +++ b/cmd/asciidoc/table/table.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package table import ( diff --git a/cmd/completion/bash/bash.go b/cmd/completion/bash/bash.go index 6afbaad..4961720 100644 --- a/cmd/completion/bash/bash.go +++ b/cmd/completion/bash/bash.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package bash import ( diff --git a/cmd/completion/completion.go b/cmd/completion/completion.go index 1dbbf07..1906804 100644 --- a/cmd/completion/completion.go +++ b/cmd/completion/completion.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package completion import ( diff --git a/cmd/completion/zsh/zsh.go b/cmd/completion/zsh/zsh.go index 7d9b3f1..131a1cd 100644 --- a/cmd/completion/zsh/zsh.go +++ b/cmd/completion/zsh/zsh.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package zsh import ( diff --git a/cmd/json/json.go b/cmd/json/json.go index 7ebf21d..5f27f17 100644 --- a/cmd/json/json.go +++ b/cmd/json/json.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package json import ( diff --git a/cmd/markdown/document/document.go b/cmd/markdown/document/document.go index b314379..621f959 100644 --- a/cmd/markdown/document/document.go +++ b/cmd/markdown/document/document.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package document import ( diff --git a/cmd/markdown/markdown.go b/cmd/markdown/markdown.go index afc7d7f..105cd23 100644 --- a/cmd/markdown/markdown.go +++ b/cmd/markdown/markdown.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package markdown import ( diff --git a/cmd/markdown/table/table.go b/cmd/markdown/table/table.go index fd4fc4a..269883f 100644 --- a/cmd/markdown/table/table.go +++ b/cmd/markdown/table/table.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package table import ( diff --git a/cmd/pretty/pretty.go b/cmd/pretty/pretty.go index edc606c..59a1b05 100644 --- a/cmd/pretty/pretty.go +++ b/cmd/pretty/pretty.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package pretty import ( diff --git a/cmd/root.go b/cmd/root.go index 874408d..12a064f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package cmd import ( diff --git a/cmd/tfvars/hcl/hcl.go b/cmd/tfvars/hcl/hcl.go index 311ac9e..926f5d8 100644 --- a/cmd/tfvars/hcl/hcl.go +++ b/cmd/tfvars/hcl/hcl.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package hcl import ( diff --git a/cmd/tfvars/json/json.go b/cmd/tfvars/json/json.go index 2f1adb5..00bf4a6 100644 --- a/cmd/tfvars/json/json.go +++ b/cmd/tfvars/json/json.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package json import ( diff --git a/cmd/tfvars/tfvars.go b/cmd/tfvars/tfvars.go index 0852749..4a6ea70 100644 --- a/cmd/tfvars/tfvars.go +++ b/cmd/tfvars/tfvars.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package tfvars import ( diff --git a/cmd/toml/toml.go b/cmd/toml/toml.go index c710cb2..9fc0c3f 100644 --- a/cmd/toml/toml.go +++ b/cmd/toml/toml.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package toml import ( diff --git a/cmd/version/version.go b/cmd/version/version.go index 6f0af88..b614843 100644 --- a/cmd/version/version.go +++ b/cmd/version/version.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package version import ( diff --git a/cmd/xml/xml.go b/cmd/xml/xml.go index 6fe7ab3..392214a 100644 --- a/cmd/xml/xml.go +++ b/cmd/xml/xml.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package xml import ( diff --git a/cmd/yaml/yaml.go b/cmd/yaml/yaml.go index e401b8c..40a66e7 100644 --- a/cmd/yaml/yaml.go +++ b/cmd/yaml/yaml.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package yaml import ( diff --git a/internal/cli/annotations.go b/internal/cli/annotations.go index a347790..6f0404c 100644 --- a/internal/cli/annotations.go +++ b/internal/cli/annotations.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package cli // Annotations returns set of annotations for cobra.Commands, diff --git a/internal/cli/annotations_test.go b/internal/cli/annotations_test.go index d1d988b..bb67faa 100644 --- a/internal/cli/annotations_test.go +++ b/internal/cli/annotations_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package cli import ( diff --git a/internal/cli/config.go b/internal/cli/config.go index 2cbbe87..e2a82c3 100644 --- a/internal/cli/config.go +++ b/internal/cli/config.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package cli import ( diff --git a/internal/cli/reader.go b/internal/cli/reader.go index f03e8e8..5e50f2a 100644 --- a/internal/cli/reader.go +++ b/internal/cli/reader.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package cli import ( diff --git a/internal/cli/reader_test.go b/internal/cli/reader_test.go index 5e139c9..2f7e548 100644 --- a/internal/cli/reader_test.go +++ b/internal/cli/reader_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package cli import ( diff --git a/internal/cli/run.go b/internal/cli/run.go index eb2ddbf..c08914b 100644 --- a/internal/cli/run.go +++ b/internal/cli/run.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package cli import ( diff --git a/internal/cli/util.go b/internal/cli/util.go index b0b7528..31cc56d 100644 --- a/internal/cli/util.go +++ b/internal/cli/util.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package cli func contains(list []string, name string) bool { diff --git a/internal/cli/util_test.go b/internal/cli/util_test.go index 82198c3..eced044 100644 --- a/internal/cli/util_test.go +++ b/internal/cli/util_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package cli import ( diff --git a/internal/format/asciidoc_document.go b/internal/format/asciidoc_document.go index 6e8aca0..1fed915 100644 --- a/internal/format/asciidoc_document.go +++ b/internal/format/asciidoc_document.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/asciidoc_document_test.go b/internal/format/asciidoc_document_test.go index 3dddd3c..225adb2 100644 --- a/internal/format/asciidoc_document_test.go +++ b/internal/format/asciidoc_document_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/asciidoc_table.go b/internal/format/asciidoc_table.go index e650bbe..8e4f4e5 100644 --- a/internal/format/asciidoc_table.go +++ b/internal/format/asciidoc_table.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/asciidoc_table_test.go b/internal/format/asciidoc_table_test.go index be81d81..5d5f587 100644 --- a/internal/format/asciidoc_table_test.go +++ b/internal/format/asciidoc_table_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/factory.go b/internal/format/factory.go index 6392f06..9537781 100644 --- a/internal/format/factory.go +++ b/internal/format/factory.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/factory_test.go b/internal/format/factory_test.go index a73ebde..191e436 100644 --- a/internal/format/factory_test.go +++ b/internal/format/factory_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/json.go b/internal/format/json.go index b43e4d8..0ffb636 100644 --- a/internal/format/json.go +++ b/internal/format/json.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/json_test.go b/internal/format/json_test.go index a1084a9..ceb4e72 100644 --- a/internal/format/json_test.go +++ b/internal/format/json_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/markdown_document.go b/internal/format/markdown_document.go index f97ef11..5a7e7fa 100644 --- a/internal/format/markdown_document.go +++ b/internal/format/markdown_document.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/markdown_document_test.go b/internal/format/markdown_document_test.go index a27326b..5caf97b 100644 --- a/internal/format/markdown_document_test.go +++ b/internal/format/markdown_document_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/markdown_table.go b/internal/format/markdown_table.go index ada670d..4a8f811 100644 --- a/internal/format/markdown_table.go +++ b/internal/format/markdown_table.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/markdown_table_test.go b/internal/format/markdown_table_test.go index 643bfe9..59d9307 100644 --- a/internal/format/markdown_table_test.go +++ b/internal/format/markdown_table_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/pretty.go b/internal/format/pretty.go index da29123..d7e5ed9 100644 --- a/internal/format/pretty.go +++ b/internal/format/pretty.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/pretty_test.go b/internal/format/pretty_test.go index 96e05d9..1c2b1ed 100644 --- a/internal/format/pretty_test.go +++ b/internal/format/pretty_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/tfvars_hcl.go b/internal/format/tfvars_hcl.go index 0e4ddf9..51ddd28 100644 --- a/internal/format/tfvars_hcl.go +++ b/internal/format/tfvars_hcl.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/tfvars_hcl_test.go b/internal/format/tfvars_hcl_test.go index 7c08490..5c5e1d2 100644 --- a/internal/format/tfvars_hcl_test.go +++ b/internal/format/tfvars_hcl_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/tfvars_json.go b/internal/format/tfvars_json.go index 40f2adf..0bbbdda 100644 --- a/internal/format/tfvars_json.go +++ b/internal/format/tfvars_json.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/tfvars_json_test.go b/internal/format/tfvars_json_test.go index 858ee98..61c4550 100644 --- a/internal/format/tfvars_json_test.go +++ b/internal/format/tfvars_json_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/toml.go b/internal/format/toml.go index f8ebc73..6107021 100644 --- a/internal/format/toml.go +++ b/internal/format/toml.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/toml_test.go b/internal/format/toml_test.go index bc53aa3..211433a 100644 --- a/internal/format/toml_test.go +++ b/internal/format/toml_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/util.go b/internal/format/util.go index 7d2159e..89ad9c4 100644 --- a/internal/format/util.go +++ b/internal/format/util.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/util_test.go b/internal/format/util_test.go index d7c8e8c..960dab0 100644 --- a/internal/format/util_test.go +++ b/internal/format/util_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/xml.go b/internal/format/xml.go index 12c90a8..5c4c2e6 100644 --- a/internal/format/xml.go +++ b/internal/format/xml.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/xml_test.go b/internal/format/xml_test.go index cc31ba6..697e5c1 100644 --- a/internal/format/xml_test.go +++ b/internal/format/xml_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/yaml.go b/internal/format/yaml.go index 755a856..8c5cf4e 100644 --- a/internal/format/yaml.go +++ b/internal/format/yaml.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/format/yaml_test.go b/internal/format/yaml_test.go index 6cdabfa..79465f7 100644 --- a/internal/format/yaml_test.go +++ b/internal/format/yaml_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package format import ( diff --git a/internal/reader/lines.go b/internal/reader/lines.go index 4b4b4a2..b289fbe 100644 --- a/internal/reader/lines.go +++ b/internal/reader/lines.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package reader import ( diff --git a/internal/reader/lines_test.go b/internal/reader/lines_test.go index adc16c3..27a246e 100644 --- a/internal/reader/lines_test.go +++ b/internal/reader/lines_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package reader import ( diff --git a/internal/terraform/doc.go b/internal/terraform/doc.go index d87ef35..015a6db 100644 --- a/internal/terraform/doc.go +++ b/internal/terraform/doc.go @@ -1,2 +1,12 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + // Package terraform is the representation of a Terraform Module package terraform diff --git a/internal/terraform/input.go b/internal/terraform/input.go index ef7c8e0..338f134 100644 --- a/internal/terraform/input.go +++ b/internal/terraform/input.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/input_test.go b/internal/terraform/input_test.go index 0fa6e64..7336707 100644 --- a/internal/terraform/input_test.go +++ b/internal/terraform/input_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/module.go b/internal/terraform/module.go index a4e5401..80106bc 100644 --- a/internal/terraform/module.go +++ b/internal/terraform/module.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/module_test.go b/internal/terraform/module_test.go index 7c01f36..b4d8b90 100644 --- a/internal/terraform/module_test.go +++ b/internal/terraform/module_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/options.go b/internal/terraform/options.go index 637e237..da8b109 100644 --- a/internal/terraform/options.go +++ b/internal/terraform/options.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/options_test.go b/internal/terraform/options_test.go index 739dd82..e13afa6 100644 --- a/internal/terraform/options_test.go +++ b/internal/terraform/options_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/output.go b/internal/terraform/output.go index 2e51ff4..ed1e083 100644 --- a/internal/terraform/output.go +++ b/internal/terraform/output.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/output_test.go b/internal/terraform/output_test.go index 53665a0..ebcf015 100644 --- a/internal/terraform/output_test.go +++ b/internal/terraform/output_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/position.go b/internal/terraform/position.go index fcb6775..c36cc71 100644 --- a/internal/terraform/position.go +++ b/internal/terraform/position.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform // Position represents position of Terraform input or output in a file. diff --git a/internal/terraform/provider.go b/internal/terraform/provider.go index 659e68b..b432b55 100644 --- a/internal/terraform/provider.go +++ b/internal/terraform/provider.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/provider_test.go b/internal/terraform/provider_test.go index 74bb40c..2ebd21b 100644 --- a/internal/terraform/provider_test.go +++ b/internal/terraform/provider_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/terraform/requirement.go b/internal/terraform/requirement.go index 2abd303..1d58aea 100644 --- a/internal/terraform/requirement.go +++ b/internal/terraform/requirement.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package terraform import ( diff --git a/internal/testutil/settings.go b/internal/testutil/settings.go index 0334439..f2368d7 100644 --- a/internal/testutil/settings.go +++ b/internal/testutil/settings.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package testutil import ( diff --git a/internal/testutil/testing.go b/internal/testutil/testing.go index 720ee61..2af1b0d 100644 --- a/internal/testutil/testing.go +++ b/internal/testutil/testing.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package testutil import ( diff --git a/internal/types/bool_test.go b/internal/types/bool_test.go index 5f83428..991ac9c 100644 --- a/internal/types/bool_test.go +++ b/internal/types/bool_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package types import ( diff --git a/internal/types/empty_test.go b/internal/types/empty_test.go index 826ff8f..31d44e4 100644 --- a/internal/types/empty_test.go +++ b/internal/types/empty_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package types import ( diff --git a/internal/types/list_test.go b/internal/types/list_test.go index 5716672..27efeeb 100644 --- a/internal/types/list_test.go +++ b/internal/types/list_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package types import ( diff --git a/internal/types/map_test.go b/internal/types/map_test.go index 8b59dbb..30a3f69 100644 --- a/internal/types/map_test.go +++ b/internal/types/map_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package types import ( diff --git a/internal/types/nil_test.go b/internal/types/nil_test.go index 3861293..6408a9e 100644 --- a/internal/types/nil_test.go +++ b/internal/types/nil_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package types import ( diff --git a/internal/types/number_test.go b/internal/types/number_test.go index f0742b3..58e1f1b 100644 --- a/internal/types/number_test.go +++ b/internal/types/number_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package types import ( diff --git a/internal/types/string_test.go b/internal/types/string_test.go index ea08cef..51629db 100644 --- a/internal/types/string_test.go +++ b/internal/types/string_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package types import ( diff --git a/internal/types/types.go b/internal/types/types.go index 856ca9c..c4aed2f 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package types import ( diff --git a/internal/types/types_test.go b/internal/types/types_test.go index f9d61cf..9a44870 100644 --- a/internal/types/types_test.go +++ b/internal/types/types_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package types import ( diff --git a/internal/version/version.go b/internal/version/version.go index 7e66307..6258d62 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package version import ( diff --git a/main.go b/main.go index 639a10c..b3c754f 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package main import ( diff --git a/pkg/print/doc.go b/pkg/print/doc.go index 47e53ba..f47be4a 100644 --- a/pkg/print/doc.go +++ b/pkg/print/doc.go @@ -1,2 +1,12 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + // Package print provides a specific definition of a printer Format package print diff --git a/pkg/print/print.go b/pkg/print/print.go index ac0a40f..f7b741e 100644 --- a/pkg/print/print.go +++ b/pkg/print/print.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package print import ( diff --git a/pkg/print/settings.go b/pkg/print/settings.go index 78daed0..723cd49 100644 --- a/pkg/print/settings.go +++ b/pkg/print/settings.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package print // Settings represents all settings diff --git a/pkg/tmpl/doc.go b/pkg/tmpl/doc.go index cbe4e15..c990363 100644 --- a/pkg/tmpl/doc.go +++ b/pkg/tmpl/doc.go @@ -1,2 +1,12 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + // Package tmpl provides templating functionality package tmpl diff --git a/pkg/tmpl/sanitizer.go b/pkg/tmpl/sanitizer.go index 54bcec9..209f2f1 100644 --- a/pkg/tmpl/sanitizer.go +++ b/pkg/tmpl/sanitizer.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package tmpl import ( diff --git a/pkg/tmpl/sanitizer_test.go b/pkg/tmpl/sanitizer_test.go index c9103ce..1c2208c 100644 --- a/pkg/tmpl/sanitizer_test.go +++ b/pkg/tmpl/sanitizer_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package tmpl import ( diff --git a/pkg/tmpl/template.go b/pkg/tmpl/template.go index 9c88755..18861dc 100644 --- a/pkg/tmpl/template.go +++ b/pkg/tmpl/template.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package tmpl import ( diff --git a/pkg/tmpl/template_test.go b/pkg/tmpl/template_test.go index 83716cc..4f48f34 100644 --- a/pkg/tmpl/template_test.go +++ b/pkg/tmpl/template_test.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package tmpl import ( diff --git a/scripts/build/build-all-osarch.sh b/scripts/build/build-all-osarch.sh index 20241b7..d82d855 100755 --- a/scripts/build/build-all-osarch.sh +++ b/scripts/build/build-all-osarch.sh @@ -1,4 +1,12 @@ #!/usr/bin/env bash +# +# Copyright 2021 The terraform-docs Authors. +# +# Licensed under the MIT license (the "License"); you may not +# use this file except in compliance with the License. +# +# You may obtain a copy of the License at the LICENSE file in +# the root directory of this source tree. set -e diff --git a/scripts/docs/generate.go b/scripts/docs/generate.go index 15cf5b0..498937f 100644 --- a/scripts/docs/generate.go +++ b/scripts/docs/generate.go @@ -1,3 +1,13 @@ +/* +Copyright 2021 The terraform-docs Authors. + +Licensed under the MIT license (the "License"); you may not +use this file except in compliance with the License. + +You may obtain a copy of the License at the LICENSE file in +the root directory of this source tree. +*/ + package main import ( diff --git a/scripts/release/release-note.sh b/scripts/release/release-note.sh index c8314c6..5a004fb 100755 --- a/scripts/release/release-note.sh +++ b/scripts/release/release-note.sh @@ -1,4 +1,12 @@ #!/usr/bin/env bash +# +# Copyright 2021 The terraform-docs Authors. +# +# Licensed under the MIT license (the "License"); you may not +# use this file except in compliance with the License. +# +# You may obtain a copy of the License at the LICENSE file in +# the root directory of this source tree. set -o errexit set -o nounset diff --git a/scripts/release/release.sh b/scripts/release/release.sh index 18dfb71..5e62505 100755 --- a/scripts/release/release.sh +++ b/scripts/release/release.sh @@ -1,4 +1,12 @@ #!/usr/bin/env bash +# +# Copyright 2021 The terraform-docs Authors. +# +# Licensed under the MIT license (the "License"); you may not +# use this file except in compliance with the License. +# +# You may obtain a copy of the License at the LICENSE file in +# the root directory of this source tree. set -o errexit set -o pipefail