Skip to content

Commit

Permalink
feat: add keploy to arkade
Browse files Browse the repository at this point in the history
Signed-off-by: Animesh Pathak <[email protected]>
  • Loading branch information
Sonichigo authored and alexellis committed Sep 2, 2024
1 parent 2c0eb21 commit 5be9b17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions pkg/get/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7701,13 +7701,13 @@ func Test_DownloadKeploy(t *testing.T) {
os: "ming",
arch: arch64bit,
version: toolVersion,
url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_windows_amd64.zip",
url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_windows_amd64.tar.gz",
},
{
os: "ming",
arch: archARM64,
version: toolVersion,
url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_windows_arm64.zip",
url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_windows_arm64.tar.gz",
},
}

Expand Down
19 changes: 11 additions & 8 deletions pkg/get/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -4215,23 +4215,26 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}}
{{ $ext := "tar.gz" }}
{{- if eq .Arch "aarch64" -}}
{{$arch = "arm64"}}
{{$arch = "arm64"}}
{{- else if eq .Arch "arm64" -}}
{{ $arch = "arm64" }}
{{ $arch = "arm64" }}
{{- else if eq .Arch "x86_64" -}}
{{ $arch = "amd64" }}
{{ $arch = "amd64" }}
{{- end -}}
{{ if HasPrefix .OS "ming" -}}
{{$os = "windows"}}
{{$ext = "zip"}}
{{$os = "windows"}}
{{ $ext := "tar.gz" }}
{{- end -}}
{{- if eq .OS "darwin" -}}
{{$os = "darwin"}}
{{$arch = "all"}}
{{$os = "darwin"}}
{{$arch = "all"}}
{{- else if eq .OS "linux" -}}
{{ $os = "linux" }}
{{ $os = "linux" }}
{{- end -}}
keploy_{{$os}}_{{$arch}}.{{$ext}}
`,
})
Expand Down

0 comments on commit 5be9b17

Please sign in to comment.