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 Readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ $ ./burrito_out/lc_<target> --version
=== Configuration

You must set the `LINEAR_API_KEY` environment variable to your Linear API key.
You can find your API key in your https://linear.app/settings/api[Linear Settings].
You can find your API key in your https://linear.app/settings/account/security[Linear Settings].

=== Commands

Expand Down
7 changes: 6 additions & 1 deletion app/lib/linear_cli/cli.ex
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,12 @@ defmodule LinearCli.CLI do
halt
) do
IO.puts(:stderr, "LINEAR_API_KEY is not set.")
IO.puts(:stderr, "Set it to your Linear API key - see https://linear.app/settings/api")

IO.puts(
:stderr,
"Set it to your Linear API key - see https://linear.app/settings/account/security"
)

IO.puts(:stderr, "** Missing configuration, cannot continue **")
maybe_print_backtrace(debug)
halt.(78)
Expand Down
2 changes: 1 addition & 1 deletion app/test/linear_cli/cli/missing_api_key_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule LinearCli.CLI.MissingApiKeyTest do

assert_received {:halted, 78}
assert output =~ "LINEAR_API_KEY is not set."
assert output =~ "https://linear.app/settings/api"
assert output =~ "https://linear.app/settings/account/security"
refute output =~ "What the heck is this?"
refute output =~ "Ash.Error"
end
Expand Down