Skip to content

Commit

Permalink
Feat/change folder structure (#36)
Browse files Browse the repository at this point in the history
* fix: moved cmd to higher layer

* fix: fixing readme

---------

Co-authored-by: osher.elmakaies <[email protected]>
  • Loading branch information
osherElm and osher.elmakaies authored Feb 9, 2023
1 parent 887aaa7 commit 9d56f95
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golang-build-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/cmd/main.go → cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
File renamed without changes.

0 comments on commit 9d56f95

Please sign in to comment.