Skip to content

fix: make railway docs work in non-interactive mode#843

Merged
m-abdelwahab merged 1 commit intomasterfrom
mahmoud/fix-docs-non-interactive
Apr 15, 2026
Merged

fix: make railway docs work in non-interactive mode#843
m-abdelwahab merged 1 commit intomasterfrom
mahmoud/fix-docs-non-interactive

Conversation

@m-abdelwahab
Copy link
Copy Markdown
Collaborator

Summary

  • railway docs no longer requires a TTY — in non-interactive mode (agents, CI, piped stdout), it prints the doc URLs instead of bailing
  • Drops the confirmation prompt ("Open the browser?") in interactive mode — just opens the browser directly
  • Prints all three doc URLs in non-interactive mode: the docs homepage, llms.txt index, and llms-full.txt full content
  • Removes the now-unused NON_INTERACTIVE_FAILURE constant from src/consts.rs

Before

$ railway docs | cat
Error: This command is only available in interactive mode

After

$ railway docs | cat
https://docs.railway.com
https://docs.railway.com/llms.txt
https://docs.railway.com/llms-full.txt

Test plan

  • railway docs | cat prints all three URLs, exits 0
  • railway docs in a terminal opens the browser without prompting
  • railway docs --help shows updated description

🤖 Generated with Claude Code

Print doc URLs (homepage, llms.txt, llms-full.txt) when stdout is not a
TTY instead of bailing. Drop the confirmation prompt in interactive mode
— just open the browser directly. Remove the now-unused
NON_INTERACTIVE_FAILURE constant.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@m-abdelwahab m-abdelwahab added the release/patch Author patch release label Apr 15, 2026
@m-abdelwahab m-abdelwahab merged commit 9088b31 into master Apr 15, 2026
6 of 7 checks passed
@m-abdelwahab m-abdelwahab deleted the mahmoud/fix-docs-non-interactive branch April 15, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/patch Author patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant