Skip to content
Merged
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
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,26 @@ See the [docs](https://docs.kosli.com/client_reference/)

`make lint`

## Building the code
## Building the code (Mac/Linux)

`make build`

Then to run Kosli commands:
`./kosli [COMMAND]`

## Building the code (Windows)

Windows will not allow building using the makefile, so we need to run the commands directly in the terminal.

`set GOFLAGS=""`
`go mod download`
`go mod tidy`
`go vet ./...`
`go build -o kosli.exe -ldflags '-extldflags "-static"' ./cmd/kosli/`

Then to run Kosli commands:
`./kosli.exe [COMMAND]` or `.\kosli.exe [COMMAND]`

## Building the documentation

`make hugo-local`
Expand Down