Skip to content

Commit 256646e

Browse files
committed
INF-1307 rename repo to twoctl-cli (binary stays twoctl)
Repo renamed on GitHub from two-inc/twoctl to two-inc/twoctl-cli. The binary, command name, and brew formula remain `twoctl`. Module path updated to github.com/two-inc/twoctl-cli everywhere, plus self-upgrade endpoint, GRC badge URLs, goreleaser homepage, and the docs-repo dispatch instructions.
1 parent c255467 commit 256646e

10 files changed

Lines changed: 16 additions & 16 deletions

File tree

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ builds:
1919
goarch: arm64
2020
ldflags:
2121
- -s -w
22-
- -X github.com/two-inc/twoctl/internal/httpx.Version={{.Version}}
22+
- -X github.com/two-inc/twoctl-cli/internal/httpx.Version={{.Version}}
2323

2424
archives:
2525
- id: twoctl

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# twoctl
22

3-
[![ci](https://github.com/two-inc/twoctl/actions/workflows/ci.yml/badge.svg)](https://github.com/two-inc/twoctl/actions/workflows/ci.yml)
4-
[![Go Report Card](https://goreportcard.com/badge/github.com/two-inc/twoctl)](https://goreportcard.com/report/github.com/two-inc/twoctl)
3+
[![ci](https://github.com/two-inc/twoctl-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/two-inc/twoctl-cli/actions/workflows/ci.yml)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/two-inc/twoctl-cli)](https://goreportcard.com/report/github.com/two-inc/twoctl-cli)
55
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
66

77
Command-line interface for the [Two](https://two.inc) merchant APIs. Generated from the [public OpenAPI specs](https://github.com/two-inc/docs/tree/main/openapi), so every endpoint is exposed as a subcommand.
@@ -16,12 +16,12 @@ brew install two-inc/tap/twoctl
1616

1717
### Binary releases
1818

19-
Download from [releases](https://github.com/two-inc/twoctl/releases) and place on `$PATH`.
19+
Download from [releases](https://github.com/two-inc/twoctl-cli/releases) and place on `$PATH`.
2020

2121
### From source
2222

2323
```sh
24-
go install github.com/two-inc/twoctl/cmd/twoctl@latest
24+
go install github.com/two-inc/twoctl-cli/cmd/twoctl@latest
2525
```
2626

2727
## Shell completion

cmd/twoctl/cli/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/spf13/cobra"
1010
"golang.org/x/term"
1111

12-
"github.com/two-inc/twoctl/internal/config"
12+
"github.com/two-inc/twoctl-cli/internal/config"
1313
)
1414

1515
func init() {

cmd/twoctl/cli/operations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"github.com/spf13/cobra"
2323
"gopkg.in/yaml.v3"
2424

25-
"github.com/two-inc/twoctl/internal/config"
26-
"github.com/two-inc/twoctl/internal/httpx"
25+
"github.com/two-inc/twoctl-cli/internal/config"
26+
"github.com/two-inc/twoctl-cli/internal/httpx"
2727
)
2828

2929
//go:embed specs/*.processed.yaml

cmd/twoctl/cli/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package cli
55
import (
66
"github.com/spf13/cobra"
77

8-
"github.com/two-inc/twoctl/internal/httpx"
8+
"github.com/two-inc/twoctl-cli/internal/httpx"
99
)
1010

1111
// Global flags. Populated by cobra during Execute().

cmd/twoctl/cli/upgrade.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/spf13/cobra"
1010
"golang.org/x/term"
1111

12-
"github.com/two-inc/twoctl/internal/httpx"
13-
"github.com/two-inc/twoctl/internal/updater"
12+
"github.com/two-inc/twoctl-cli/internal/httpx"
13+
"github.com/two-inc/twoctl-cli/internal/updater"
1414
)
1515

1616
// flagNoUpgradeCheck lets a user (or scripts) suppress the auto-check

cmd/twoctl/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package main
22

3-
import "github.com/two-inc/twoctl/cmd/twoctl/cli"
3+
import "github.com/two-inc/twoctl-cli/cmd/twoctl/cli"
44

55
func main() {
66
cli.HandleError(cli.Root().Execute())

docs/regeneration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ A nightly cron in `regenerate.yml` is the safety net if a dispatch ever gets dro
2121

2222
### One-time setup in `two-inc/docs`
2323

24-
1. Create a fine-grained PAT scoped to `two-inc/twoctl` with `actions: write`. Store as `TWOCTL_DISPATCH_TOKEN`.
24+
1. Create a fine-grained PAT scoped to `two-inc/twoctl-cli` with `actions: write`. Store as `TWOCTL_DISPATCH_TOKEN`.
2525
2. Copy [`notify-twoctl.yml.example`](notify-twoctl.yml.example) into `.github/workflows/notify-twoctl.yml`.
2626

27-
### One-time setup in `two-inc/twoctl`
27+
### One-time setup in `two-inc/twoctl-cli`
2828

2929
The `regenerate.yml` workflow uses `GITHUB_TOKEN` for PR creation. No extra secret needed unless you want it to read private docs (override `DOCS_READ_TOKEN`).
3030

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/two-inc/twoctl
1+
module github.com/two-inc/twoctl-cli
22

33
go 1.26.3
44

internal/updater/updater.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
const (
1818
owner = "two-inc"
19-
repo = "twoctl"
19+
repo = "twoctl-cli"
2020
// checkInterval throttles the network call made by AutoCheck so that
2121
// every invocation of twoctl doesn't hit the GitHub API.
2222
checkInterval = 24 * time.Hour

0 commit comments

Comments
 (0)