Skip to content

Commit

Permalink
chore: move tctl to temporal
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Gee <[email protected]>
  • Loading branch information
rgee0 committed Mar 1, 2025
1 parent 378177b commit c0f4ba4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ There are 52 apps that you can install on your cluster.
| [syft](https://github.com/anchore/syft) | CLI tool and library for generating a Software Bill of Materials from container images and filesystems |
| [talosctl](https://github.com/siderolabs/talos) | The command-line tool for managing Talos Linux OS. |
| [task](https://github.com/go-task/task) | A simple task runner and build tool |
| [tctl](https://github.com/temporalio/tctl) | Temporal CLI. |
| [temporal](https://github.com/temporalio/cli) | Temporal CLI. |
| [terraform](https://github.com/hashicorp/terraform) | Infrastructure as Code for major cloud providers. |
| [terraform-docs](https://github.com/terraform-docs/terraform-docs) | Generate documentation from Terraform modules in various output formats. |
| [terragrunt](https://github.com/gruntwork-io/terragrunt) | Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules |
Expand Down
24 changes: 15 additions & 9 deletions pkg/get/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5709,10 +5709,10 @@ func Test_DownloadViddy(t *testing.T) {
}
}

func Test_DownloadTctl(t *testing.T) {
func Test_DownloadTemporalCLI(t *testing.T) {
tools := MakeTools()
name := "tctl"
version := "v1.16.3"
name := "temporal"
version := "v1.3.0"

tool := getTool(name, tools)

Expand All @@ -5721,31 +5721,37 @@ func Test_DownloadTctl(t *testing.T) {
os: "darwin",
arch: arch64bit,
version: version,
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_darwin_amd64.tar.gz",
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_darwin_amd64.tar.gz",
},
{
os: "darwin",
arch: archDarwinARM64,
version: version,
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_darwin_arm64.tar.gz",
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_darwin_arm64.tar.gz",
},
{
os: "linux",
arch: arch64bit,
version: version,
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_linux_amd64.tar.gz",
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_linux_amd64.tar.gz",
},
{
os: "linux",
arch: archARM64,
version: version,
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_linux_arm64.tar.gz",
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_linux_arm64.tar.gz",
},
{
os: "ming",
arch: arch64bit,
version: version,
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_windows_amd64.zip",
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_windows_amd64.zip",
},
{
os: "ming",
arch: archARM64,
version: version,
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_windows_arm64.zip",
},
}

Expand All @@ -5756,7 +5762,7 @@ func Test_DownloadTctl(t *testing.T) {
t.Fatal(err)
}
if got != tc.url {
t.Errorf("want: %s, got: %s", tc.url, got)
t.Errorf("\nwant: %s, \n got: %s", tc.url, got)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/get/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -3186,8 +3186,8 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}}
tools = append(tools,
Tool{
Owner: "temporalio",
Repo: "tctl",
Name: "tctl",
Repo: "cli",
Name: "temporal",
Description: "Temporal CLI.",
BinaryTemplate: `
{{$os := .OS}}
Expand All @@ -3206,7 +3206,7 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}}
{{$ext = "zip"}}
{{- end -}}
{{.Name}}_{{.VersionNumber}}_{{$os}}_{{$arch}}.{{$ext}}
{{.Name}}_cli_{{.VersionNumber}}_{{$os}}_{{$arch}}.{{$ext}}
`,
})

Expand Down

0 comments on commit c0f4ba4

Please sign in to comment.