Skip to content

Commit

Permalink
Merge pull request #5 from fugue/custom-rules
Browse files Browse the repository at this point in the history
Custom rule subcommands
  • Loading branch information
curtis-fugue authored Oct 3, 2019
2 parents feb3bd8 + 9c3a1ad commit 9e8b978
Show file tree
Hide file tree
Showing 32 changed files with 2,567 additions and 38 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SWAGGER_URL=https://api.riskmanager.fugue.co/v0/swagger
SOURCES=$(shell find . -name '*.go')
GOPATH?=$(shell go env GOPATH)
UPDATE_ENV_SRC=$(shell find models -name "update_environment_input.go")
UPDATE_RULE_SRC=$(shell find models -name "update_custom_rule_input.go")

$(BINARY): $(SOURCES)
$(GO) build $(LD_FLAGS) -v -o fugue
Expand All @@ -35,6 +36,7 @@ gen: $(SWAGGER)
sed -i "" "s/BaselineID string/BaselineID *string/g" $(UPDATE_ENV_SRC)
sed -i "" "s/Remediation bool/Remediation *bool/g" $(UPDATE_ENV_SRC)
sed -i "" "s/ScanScheduleEnabled bool/ScanScheduleEnabled *bool/g" $(UPDATE_ENV_SRC)
sed -i "" "s/ScanScheduleEnabled bool/ScanScheduleEnabled *bool/g" $(UPDATE_RULE_SRC)

.PHONY: clean
clean:
Expand Down
45 changes: 38 additions & 7 deletions client/c_o_r_s/c_o_r_s_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 113 additions & 0 deletions client/c_o_r_s/options_rules_test_input_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions client/c_o_r_s/options_rules_test_input_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 113 additions & 0 deletions client/c_o_r_s/options_rules_test_swagger_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9e8b978

Please sign in to comment.