diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..87ce5c9 --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index e3d0de0..01c0c99 100644 --- a/README.md +++ b/README.md @@ -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