Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ jobs:
name: Save the image to a tarball for Trivy to scan directly
id: save
run: |
tarball="$RUNNER_TEMP/linear-cli-ex.tar"
tarball="$RUNNER_TEMP/linear-cli.tar"
./ci/save_image.sh "${{ needs.burrito-package.outputs.tag_name }}" "$tarball"
printf 'tarball_path=%s\n' "$tarball" >> "$GITHUB_OUTPUT"
-
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
url = git@github.com:ash-project/usage_rules
[submodule "vendor/ruby-linear-cli"]
path = vendor/ruby-linear-cli
url = git@github.com:rubyists/linear-cli
url = git@github.com:rubyists/linear-cli-rb
[submodule "vendor/drafter"]
path = vendor/drafter
url = git@github.com:jaman/drafter
Expand Down
20 changes: 10 additions & 10 deletions Readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ and update issues without leaving your terminal.

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

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

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

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

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

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

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

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

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

[source,sh]
----
$ git clone https://github.com/rubyists/linear-cli-ex.git
$ cd linear-cli-ex/app
$ git clone https://github.com/rubyists/linear-cli.git
$ cd linear-cli/app
$ mise install
$ mise exec -- mix deps.get
$ mise exec -- env MIX_ENV=prod mix release lc
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
# uninstall.sh can remove precisely those files even if $PATH changes
# between install and uninstall.

repo=rubyists/linear-cli-ex
repo=rubyists/linear-cli
version=${LC_VERSION:-latest}
state_dir="${XDG_STATE_HOME:-$HOME/.local/state}/linear-cli-ex"
state_dir="${XDG_STATE_HOME:-$HOME/.local/state}/linear-cli"
manifest="$state_dir/manifest"

detect_target() {
Expand Down
2 changes: 1 addition & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# not a guess at where things might be, so this stays correct even if
# $PATH changed since install.

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

if [ ! -f "$manifest" ]
Expand Down
2 changes: 1 addition & 1 deletion vendor/rubyists-homebrew-tap