Skip to content

Commit 373ff15

Browse files
committed
fix: update references after the linear-cli-ex -> linear-cli / linear-cli -> linear-cli-rb repo renames
Local remotes were already fixed (this repo's origin, and vendor/ruby-linear-cli's remote in both .gitmodules and its own checked-out git config). This is everything else that hardcoded the old names: - install.sh/uninstall.sh: repo= URL and state_dir (renamed now, not kept for backward compat - real installs against the old name are minimal, the tool shipped its first release only a day ago). Verified a full install/uninstall round-trip against the renamed state_dir and that the release download actually resolves at the new repo path. - Readme.adoc: 9 occurrences, plus caught and fixed one the blind rename would have gotten backwards - the "port of Ruby's linear-cli" link needs to point at linear-cli-rb now, not this repo. Left the 4 plain-prose "Ruby's `linear-cli`" mentions alone - verified via the Ruby repo's own gemspec (spec.name = 'linear-cli') that the gem itself really is still called that; only its GitHub repo got renamed. - .github/workflows/main.yaml: the container job's temp tarball filename (cosmetic only, no functional effect). - vendor/rubyists-homebrew-tap: bumped to the commit fixing its own homepage/download URLs (rubyists/homebrew-tap#2). CHANGELOG.md's historical release-please-generated links are deliberately left untouched - see #80 for why. Closes #80.
1 parent 15b33cd commit 373ff15

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ jobs:
315315
name: Save the image to a tarball for Trivy to scan directly
316316
id: save
317317
run: |
318-
tarball="$RUNNER_TEMP/linear-cli-ex.tar"
318+
tarball="$RUNNER_TEMP/linear-cli.tar"
319319
./ci/save_image.sh "${{ needs.burrito-package.outputs.tag_name }}" "$tarball"
320320
printf 'tarball_path=%s\n' "$tarball" >> "$GITHUB_OUTPUT"
321321
-

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
url = git@github.com:ash-project/usage_rules
1313
[submodule "vendor/ruby-linear-cli"]
1414
path = vendor/ruby-linear-cli
15-
url = git@github.com:rubyists/linear-cli
15+
url = git@github.com:rubyists/linear-cli-rb
1616
[submodule "vendor/drafter"]
1717
path = vendor/drafter
1818
url = git@github.com:jaman/drafter

Readme.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and update issues without leaving your terminal.
2020

2121
image::cinemas/listings.cinema.gif[]
2222

23-
This is an Elixir/OTP port of https://github.com/rubyists/linear-cli[linear-cli]
23+
This is an Elixir/OTP port of https://github.com/rubyists/linear-cli-rb[linear-cli-rb]
2424
(the original Ruby CLI): same commands, same wrapper scripts (`lcls`,
2525
`lcreate`, ...), but shipped as a single standalone binary - no Ruby runtime
2626
or gem install - via https://github.com/burrito-elixir/burrito[Burrito], and
@@ -36,8 +36,8 @@ You can run the CLI from the container image without installing anything.
3636

3737
[source,sh]
3838
----
39-
$ podman run --rm -e LINEAR_CLI_DAEMON= -e LINEAR_API_KEY="$LINEAR_API_KEY" ghcr.io/rubyists/linear-cli-ex:v0 lcls <1>
40-
$ docker run --rm -e LINEAR_CLI_DAEMON= -e LINEAR_API_KEY="$LINEAR_API_KEY" ghcr.io/rubyists/linear-cli-ex:v0 lcls <2>
39+
$ podman run --rm -e LINEAR_CLI_DAEMON= -e LINEAR_API_KEY="$LINEAR_API_KEY" ghcr.io/rubyists/linear-cli:v0 lcls <1>
40+
$ docker run --rm -e LINEAR_CLI_DAEMON= -e LINEAR_API_KEY="$LINEAR_API_KEY" ghcr.io/rubyists/linear-cli:v0 lcls <2>
4141
----
4242
<1> Podman usage
4343
<2> Docker usage - `:v0` tracks the latest 0.x release; pin `:v0.1.2` (or whichever version) for a fixed image
@@ -50,16 +50,16 @@ to an empty value (as above) for one-off interactive CLI usage - otherwise
5050
=== Download a release binary (Most should use this)
5151

5252
Grab the tarball for your platform from the
53-
https://github.com/rubyists/linear-cli-ex/releases[latest release] - macOS
53+
https://github.com/rubyists/linear-cli/releases[latest release] - macOS
5454
(Apple Silicon), Linux (x86_64), and Windows (x86_64) are all built as
5555
standalone executables with no Erlang/Elixir install required. Each tarball
5656
bundles `lc` with the wrapper scripts (`lcreate`, `lcls`, `lclose`,
5757
`lcomment`, `lproj`).
5858

5959
[source,sh]
6060
----
61-
$ curl -sLO https://github.com/rubyists/linear-cli-ex/releases/latest/download/lc_macos_aarch64.tar.gz
62-
$ curl -sLo SHA256SUMS https://github.com/rubyists/linear-cli-ex/releases/latest/download/SHA256SUMS
61+
$ curl -sLO https://github.com/rubyists/linear-cli/releases/latest/download/lc_macos_aarch64.tar.gz
62+
$ curl -sLo SHA256SUMS https://github.com/rubyists/linear-cli/releases/latest/download/SHA256SUMS
6363
$ grep -q lc_macos_aarch64.tar.gz SHA256SUMS && grep lc_macos_aarch64.tar.gz SHA256SUMS | shasum -a 256 -c - <1>
6464
$ mkdir lc && tar -xzf lc_macos_aarch64.tar.gz -C lc
6565
$ sudo mv lc/* /usr/local/bin/
@@ -94,7 +94,7 @@ See https://github.com/rubyists/homebrew-tap for the formula itself.
9494

9595
[source,sh]
9696
----
97-
$ curl -fsSL https://raw.githubusercontent.com/rubyists/linear-cli-ex/main/install.sh | bash
97+
$ curl -fsSL https://raw.githubusercontent.com/rubyists/linear-cli/main/install.sh | bash
9898
----
9999

100100
Detects your platform, downloads and checksum-verifies the matching release
@@ -106,7 +106,7 @@ specific install directory.
106106

107107
[source,sh]
108108
----
109-
$ curl -fsSL https://raw.githubusercontent.com/rubyists/linear-cli-ex/main/uninstall.sh | bash
109+
$ curl -fsSL https://raw.githubusercontent.com/rubyists/linear-cli/main/uninstall.sh | bash
110110
----
111111

112112
Removes exactly what `install.sh` installed, by replaying the manifest it
@@ -116,8 +116,8 @@ wrote - not a guess at where things ended up.
116116

117117
[source,sh]
118118
----
119-
$ git clone https://github.com/rubyists/linear-cli-ex.git
120-
$ cd linear-cli-ex/app
119+
$ git clone https://github.com/rubyists/linear-cli.git
120+
$ cd linear-cli/app
121121
$ mise install
122122
$ mise exec -- mix deps.get
123123
$ mise exec -- env MIX_ENV=prod mix release lc

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# uninstall.sh can remove precisely those files even if $PATH changes
1414
# between install and uninstall.
1515

16-
repo=rubyists/linear-cli-ex
16+
repo=rubyists/linear-cli
1717
version=${LC_VERSION:-latest}
18-
state_dir="${XDG_STATE_HOME:-$HOME/.local/state}/linear-cli-ex"
18+
state_dir="${XDG_STATE_HOME:-$HOME/.local/state}/linear-cli"
1919
manifest="$state_dir/manifest"
2020

2121
detect_target() {

uninstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# not a guess at where things might be, so this stays correct even if
44
# $PATH changed since install.
55

6-
state_dir="${XDG_STATE_HOME:-$HOME/.local/state}/linear-cli-ex"
6+
state_dir="${XDG_STATE_HOME:-$HOME/.local/state}/linear-cli"
77
manifest="$state_dir/manifest"
88

99
if [ ! -f "$manifest" ]

0 commit comments

Comments
 (0)