Skip to content

Commit 6551b09

Browse files
rgee0alexellis
authored andcommittedMar 1, 2025·
chore: move tctl to temporal
Signed-off-by: Richard Gee <richard@technologee.co.uk>
1 parent 378177b commit 6551b09

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ There are 52 apps that you can install on your cluster.
901901
| [syft](https://github.com/anchore/syft) | CLI tool and library for generating a Software Bill of Materials from container images and filesystems |
902902
| [talosctl](https://github.com/siderolabs/talos) | The command-line tool for managing Talos Linux OS. |
903903
| [task](https://github.com/go-task/task) | A simple task runner and build tool |
904-
| [tctl](https://github.com/temporalio/tctl) | Temporal CLI. |
904+
| [temporal](https://github.com/temporalio/cli) | Temporal CLI. |
905905
| [terraform](https://github.com/hashicorp/terraform) | Infrastructure as Code for major cloud providers. |
906906
| [terraform-docs](https://github.com/terraform-docs/terraform-docs) | Generate documentation from Terraform modules in various output formats. |
907907
| [terragrunt](https://github.com/gruntwork-io/terragrunt) | Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules |

‎pkg/get/get_test.go

+15-9
Original file line numberDiff line numberDiff line change
@@ -5709,10 +5709,10 @@ func Test_DownloadViddy(t *testing.T) {
57095709
}
57105710
}
57115711

5712-
func Test_DownloadTctl(t *testing.T) {
5712+
func Test_DownloadTemporalCLI(t *testing.T) {
57135713
tools := MakeTools()
5714-
name := "tctl"
5715-
version := "v1.16.3"
5714+
name := "temporal"
5715+
version := "v1.3.0"
57165716

57175717
tool := getTool(name, tools)
57185718

@@ -5721,31 +5721,37 @@ func Test_DownloadTctl(t *testing.T) {
57215721
os: "darwin",
57225722
arch: arch64bit,
57235723
version: version,
5724-
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_darwin_amd64.tar.gz",
5724+
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_darwin_amd64.tar.gz",
57255725
},
57265726
{
57275727
os: "darwin",
57285728
arch: archDarwinARM64,
57295729
version: version,
5730-
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_darwin_arm64.tar.gz",
5730+
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_darwin_arm64.tar.gz",
57315731
},
57325732
{
57335733
os: "linux",
57345734
arch: arch64bit,
57355735
version: version,
5736-
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_linux_amd64.tar.gz",
5736+
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_linux_amd64.tar.gz",
57375737
},
57385738
{
57395739
os: "linux",
57405740
arch: archARM64,
57415741
version: version,
5742-
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_linux_arm64.tar.gz",
5742+
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_linux_arm64.tar.gz",
57435743
},
57445744
{
57455745
os: "ming",
57465746
arch: arch64bit,
57475747
version: version,
5748-
url: "https://github.com/temporalio/tctl/releases/download/v1.16.3/tctl_1.16.3_windows_amd64.zip",
5748+
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_windows_amd64.zip",
5749+
},
5750+
{
5751+
os: "ming",
5752+
arch: archARM64,
5753+
version: version,
5754+
url: "https://github.com/temporalio/cli/releases/download/v1.3.0/temporal_cli_1.3.0_windows_arm64.zip",
57495755
},
57505756
}
57515757

@@ -5756,7 +5762,7 @@ func Test_DownloadTctl(t *testing.T) {
57565762
t.Fatal(err)
57575763
}
57585764
if got != tc.url {
5759-
t.Errorf("want: %s, got: %s", tc.url, got)
5765+
t.Errorf("\nwant: %s, \n got: %s", tc.url, got)
57605766
}
57615767
})
57625768
}

‎pkg/get/tools.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3186,8 +3186,8 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}}
31863186
tools = append(tools,
31873187
Tool{
31883188
Owner: "temporalio",
3189-
Repo: "tctl",
3190-
Name: "tctl",
3189+
Repo: "cli",
3190+
Name: "temporal",
31913191
Description: "Temporal CLI.",
31923192
BinaryTemplate: `
31933193
{{$os := .OS}}
@@ -3206,7 +3206,7 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}}
32063206
{{$ext = "zip"}}
32073207
{{- end -}}
32083208
3209-
{{.Name}}_{{.VersionNumber}}_{{$os}}_{{$arch}}.{{$ext}}
3209+
{{.Name}}_cli_{{.VersionNumber}}_{{$os}}_{{$arch}}.{{$ext}}
32103210
`,
32113211
})
32123212

0 commit comments

Comments
 (0)
Please sign in to comment.