Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ REPO_NAME = github.com/operantai/$(BINARY_NAME)
GIT_COMMIT = $(shell git rev-list -1 HEAD)
BUILD_DATE = $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
VERSION = $(shell git describe --tags --always --dirty)
LD_FLAGS = "-X $(REPO_NAME)/cmd/cli/cmd.GitCommit=$(GIT_COMMIT) -X $(REPO_NAME)/cmd/cli/cmd.Version=$(GIT_COMMIT) -X $(REPO_NAME)/cmd/cli/cmd.BuildDate=$(BUILD_DATE)"
LD_FLAGS = "-X $(REPO_NAME)/cmd/secops-chaos/cmd.GitCommit=$(GIT_COMMIT) -X $(REPO_NAME)/cmd/secops-chaos/cmd.Version=$(GIT_COMMIT) -X $(REPO_NAME)/cmd/secops-chaos/cmd.BuildDate=$(BUILD_DATE)"

all: fmt vet test build

build: ## Build binary
@go build -o "bin/$(BINARY_NAME)" -ldflags $(LD_FLAGS) cmd/cli/main.go
@go build -o "bin/$(BINARY_NAME)" -ldflags $(LD_FLAGS) cmd/secops-chaos/main.go

fmt: ## Run go fmt
@go fmt ./...
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
### Installation

``` sh
go install github.com/operantai/secops-chaos@latest
go install github.com/operantai/secops-chaos/cmd/secops-chaos@latest
```

Go will automatically install it in your `$GOPATH/bin` directory, which should be in your `$PATH`.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cmd/cli/main.go → cmd/secops-chaos/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright 2023 Operant AI
*/
package main

import "github.com/operantai/secops-chaos/cmd/cli/cmd"
import "github.com/operantai/secops-chaos/cmd/secops-chaos/cmd"

func main() {
cmd.Execute()
Expand Down