Skip to content

Commit

Permalink
adding makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
nurettintopal committed Jul 6, 2024
1 parent b28a207 commit f320ff7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
project_name = rule-engine

help: ## This help dialog.
@grep -F -h "##" $(MAKEFILE_LIST) | grep -F -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'

run-local: ## Run the app locally
go run main.go

requirements: ## Generate go.mod & go.sum files
go mod tidy

clean-packages: ## Clean packages
go clean -modcache

test: ## Run the tests
go test

test-v: ## Run the tests
go test -v

test-cover: ## Run the tests
go test -cover
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,17 @@ Rules have been executed. it passed!
```


## features
* Multiple rules by all or any
## operators
| operator | meaning |
----------------------|-------------------------------------------------
| equals | equals to |
| notEquals | not equal to |
| lessThan | less than |
| greaterThan | greater than |
| lessThanInclusive | less than or equal to |
| greaterThanInclusive | greater than or equal to |
| in | in a list |
| notIn | not in a list |

## dependencies
* Go
Expand Down

0 comments on commit f320ff7

Please sign in to comment.