Skip to content

Commit

Permalink
initial commit. migrate command.
Browse files Browse the repository at this point in the history
  • Loading branch information
smgladkovskiy committed Oct 27, 2021
0 parents commit c562264
Show file tree
Hide file tree
Showing 5 changed files with 1,069 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea
vendor
bin
.golangci*.yml
linter.mk
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# ----
## LINTER stuff start

linter_include_check:
@[ -f linter.mk ] && echo "linter.mk include exists" || (echo "getting linter.mk from github.com" && curl -sO https://raw.githubusercontent.com/spacetab-io/makefiles/master/golang/linter.mk)

.PHONY: lint
lint: linter_include_check
@make -f linter.mk go_lint

## LINTER stuff end
# ----

# ----
## TESTS stuff start

tests_include_check:
@[ -f tests.mk ] && echo "tests.mk include exists" || (echo "getting tests.mk from github.com" && curl -sO https://raw.githubusercontent.com/spacetab-io/makefiles/master/golang/tests.mk)

tests: tests_include_check
@make -f tests.mk go_tests
.PHONY: tests

tests_html: tests_include_check
@make -f tests.mk go_tests_html
.PHONY: tests_html

## TESTS stuff end
# ----
13 changes: 13 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module github.com/spacetab-io/commands

go 1.16

require (
github.com/jackc/pgx/v4 v4.13.0
github.com/pressly/goose v2.7.0+incompatible
github.com/spacetab-io/configuration-structs-go v0.0.0-20211027083052-7b197881fc88
github.com/spacetab-io/logs-go/v2 v2.1.0
github.com/spf13/cobra v1.2.1
)

//replace github.com/spacetab-io/configuration-structs-go => ../configuration-structs-go
Loading

0 comments on commit c562264

Please sign in to comment.