mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-06 12:59:13 +00:00
Update Makefile, README.md, and 4 more files...
This commit is contained in:
parent
d800a473c9
commit
206564db9b
23
cli/Makefile
23
cli/Makefile
@ -1,22 +1,21 @@
|
|||||||
install:
|
install:
|
||||||
go build -o bin/main main.go
|
go build install mizu.go
|
||||||
cp bin/main /usr/local/bin/mizu
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build -o bin/main main.go
|
go build -o bin/mizu mizu.go
|
||||||
|
|
||||||
build-cr:
|
build-cr:
|
||||||
echo "Compiling for every OS and Platform"
|
echo "Compiling for every OS and Platform"
|
||||||
GOOS=linux GOARCH=386 go build -o bin/mizu-linux-386 main.go
|
GOOS=linux GOARCH=386 go build -o bin/mizu-linux-386 mizu.go
|
||||||
GOOS=windows GOARCH=386 go build -o bin/mizu-windows-386.exe main.go
|
GOOS=windows GOARCH=386 go build -o bin/mizu-windows-386.exe mizu.go
|
||||||
|
|
||||||
GOOS=darwin GOARCH=amd64 go build -o bin/mizu-darwin-amd64 main.go
|
GOOS=darwin GOARCH=amd64 go build -o bin/mizu-darwin-amd64 mizu.go
|
||||||
GOOS=linux GOARCH=amd64 go build -o bin/mizu-linux-amd64 main.go
|
GOOS=linux GOARCH=amd64 go build -o bin/mizu-linux-amd64 mizu.go
|
||||||
GOOS=windows GOARCH=amd64 go build -o bin/mizu-windows-amd64.exe main.go
|
GOOS=windows GOARCH=amd64 go build -o bin/mizu-windows-amd64.exe mizu.go
|
||||||
|
|
||||||
GOOS=darwin GOARCH=arm64 go build -o bin/mizu-darwin-arm64 main.go
|
GOOS=darwin GOARCH=arm64 go build -o bin/mizu-darwin-arm64 mizu.go
|
||||||
GOOS=linux GOARCH=arm64 go build -o bin/mizu-linux-arm64 main.go
|
GOOS=linux GOARCH=arm64 go build -o bin/mizu-linux-arm64 mizu.go
|
||||||
GOOS=windows GOARCH=arm64 go build -o bin/mizu-windows-arm64 main.go
|
GOOS=windows GOARCH=arm64 go build -o bin/mizu-windows-arm64 mizu.go
|
||||||
|
|
||||||
run:
|
run:
|
||||||
go run main.go ".*"
|
go run . ".*"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# mizu CLI
|
# mizu CLI
|
||||||
## Usage
|
## Usage
|
||||||
`./main {pod_name_regex}`
|
`./mizu {pod_name_regex}`
|
||||||
|
|
||||||
### Optional Flags
|
### Optional Flags
|
||||||
|
|
||||||
@ -11,15 +11,15 @@
|
|||||||
| `--namespace` | | use namespace different than the one found in kubeconfig |
|
| `--namespace` | | use namespace different than the one found in kubeconfig |
|
||||||
| `--kubeconfig` | | Path to custom kubeconfig file |
|
| `--kubeconfig` | | Path to custom kubeconfig file |
|
||||||
|
|
||||||
There are some extra flags defined in code that will show up in `./main --help`, these are non functional stubs for now
|
There are some extra flags defined in code that will show up in `./mizu --help`, these are non functional stubs for now
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
Make sure your go version is at least 1.11
|
Make sure your go version is at least 1.11
|
||||||
1. cd to `mizu/cli`
|
1. cd to `mizu/cli`
|
||||||
2. Run `go mod download` (may take a moment)
|
2. Run `go mod download` (may take a moment)
|
||||||
3. Run `go build main.go`
|
3. Run `go build mizu.go`
|
||||||
|
|
||||||
Alternatively, you can build+run directly using `go run main.go {pod_name_regex}`
|
Alternatively, you can build+run directly using `go run mizu.go {pod_name_regex}`
|
||||||
|
|
||||||
|
|
||||||
## Known issues
|
## Known issues
|
||||||
|
Loading…
Reference in New Issue
Block a user