diff --git a/.github/workflows/golang-build-test-coverage.yml b/.github/workflows/golang-build-test-coverage.yml index 0745e79..6818ab7 100644 --- a/.github/workflows/golang-build-test-coverage.yml +++ b/.github/workflows/golang-build-test-coverage.yml @@ -34,7 +34,7 @@ jobs: dep ensure fi - name: Build - run: go build -v internal/cmd/main.go + run: go build -v cmd/main.go lint: name: Lint diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 60f98e5..b15f78a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,7 +50,7 @@ jobs: goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} goversion: ${{ steps.get_go_version.outputs.version }} - project_path: "internal/cmd/" + project_path: "cmd/" binary_name: "terra-crust" # pre_command: "" # build_command: "" diff --git a/Makefile b/Makefile index 11f25b5..119213a 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) export GO_VERSION ?= $(shell grep -E "^go " go.mod | awk -F' ' '{print $$2}' ) export GOLANGCI_LINT_VERSION=v1.50.1 -export MAIN_GO=internal/cmd/main.go +export MAIN_GO=cmd/main.go .PHONY: help help: ## Show this help message. diff --git a/README.md b/README.md index cbd055c..421649f 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ terra-crust terraform-all --destination-path="." --source-path=".../modules" ## Remote TerraCrust: ### Description -From version 2.0.0 TerraCrust will support fetching remote modules +From version v0.1.0 TerraCrust will support fetching remote modules and composite them into the root module that is being created. ### How to use in order to activate this feature all you have to do is to set `fetch-remote` to true like so: diff --git a/internal/cmd/app/generate_all.go b/cmd/app/generate_all.go similarity index 98% rename from internal/cmd/app/generate_all.go rename to cmd/app/generate_all.go index d3145fc..860507e 100644 --- a/internal/cmd/app/generate_all.go +++ b/cmd/app/generate_all.go @@ -15,9 +15,9 @@ package app import ( + "github.com/AppsFlyer/terra-crust/cmd/types" "github.com/spf13/cobra" - "github.com/AppsFlyer/terra-crust/internal/cmd/types" template_reader "github.com/AppsFlyer/terra-crust/internal/services/drivers/template_reader" version_control "github.com/AppsFlyer/terra-crust/internal/services/drivers/version_control" ) diff --git a/internal/cmd/app/generate_main.go b/cmd/app/generate_main.go similarity index 98% rename from internal/cmd/app/generate_main.go rename to cmd/app/generate_main.go index 9ad3859..29e276d 100644 --- a/internal/cmd/app/generate_main.go +++ b/cmd/app/generate_main.go @@ -15,7 +15,7 @@ package app import ( - "github.com/AppsFlyer/terra-crust/internal/cmd/types" + "github.com/AppsFlyer/terra-crust/cmd/types" template_reader "github.com/AppsFlyer/terra-crust/internal/services/drivers/template_reader" version_control "github.com/AppsFlyer/terra-crust/internal/services/drivers/version_control" "github.com/spf13/cobra" diff --git a/internal/cmd/app/generate_terraform_file.go b/cmd/app/generate_terraform_file.go similarity index 97% rename from internal/cmd/app/generate_terraform_file.go rename to cmd/app/generate_terraform_file.go index 4f62a19..2a2dfa6 100644 --- a/internal/cmd/app/generate_terraform_file.go +++ b/cmd/app/generate_terraform_file.go @@ -16,8 +16,8 @@ package app import ( "fmt" + "github.com/AppsFlyer/terra-crust/cmd/types" - "github.com/AppsFlyer/terra-crust/internal/cmd/types" "github.com/spf13/cobra" ) diff --git a/internal/cmd/app/initializer.go b/cmd/app/initializer.go similarity index 100% rename from internal/cmd/app/initializer.go rename to cmd/app/initializer.go diff --git a/internal/cmd/app/root.go b/cmd/app/root.go similarity index 100% rename from internal/cmd/app/root.go rename to cmd/app/root.go diff --git a/internal/cmd/main.go b/cmd/main.go similarity index 94% rename from internal/cmd/main.go rename to cmd/main.go index 410f87d..673952d 100644 --- a/internal/cmd/main.go +++ b/cmd/main.go @@ -16,10 +16,10 @@ package main import ( "context" + "github.com/AppsFlyer/terra-crust/cmd/app" "os" logger "github.com/AppsFlyer/go-logger" - "github.com/AppsFlyer/terra-crust/internal/cmd/app" ) func main() { diff --git a/internal/cmd/types/terraform_variable.go b/cmd/types/terraform_variable.go similarity index 100% rename from internal/cmd/types/terraform_variable.go rename to cmd/types/terraform_variable.go