ruby / ruby/irb

Add start up message

Open
#687 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Ruby
Stars
478
Forks
158
Avg merge
1d 12h
Merged PRs (30d)
12

Description

When starting IRB directly, it could be helpful to users to have a few information printed, like:

  • Ruby version
  • Reline version?
  • Minimum instructions, like how to get help or exit the session
Requirements
  • It should be printed when IRB is started with the irb command
  • It should NOT be printed when binding.irb is called
  • It should NOT be printed when Rails console is invoked
  • There should be a way to disable it
    • I prefer env var over IRB.conf on this
Examples
$ be irb
IRB 1.7.4 (Ruby 3.2.2, Reline 0.3.8)
  Help: show_cmds
  Exit: exit or Ctrl-D
irb(main):001> 

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the irb command starts compared with binding.irb and Rails console, then identify where startup output and environment configuration are handled. Done means the requested version and help text appear only for direct irb invocation, can be disabled, and are covered by tests for all three invocation paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.