Add a shorter alias for the whereami command

Aperta
#1,086 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
cli, devtools

Direzione di ricerca

Start by locating the default command-alias definitions and compare the existing list/l alias mentioned in the issue. Add the requested short alias for whereami, then verify that the alias invokes the same command without raising an error and run the relevant CLI tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Your proposal
Add an alias for whereami called w. Or something else short.

Additional context
Since the list command is stateful (continuing to print source code below if you run it multiple times), I find myself using whereami instead. But I wish it had a short alias (like list has l). I've already mistyped whereami as both wherami and once I even forgot the last bit and simply typed where, both of which crash with a NoMethodError.

Reading through https://github.com/ruby/debug/issues/639 it seems the idea of allowing users to alias @ whereami would be added but since it hasn't been done I think it would be better to just add it to the defaults.

@ would be similiar to pry so maybe that makes it easier for some people to switch?

Lingua principale
Ruby
Stelle
1.3k
Fork
146
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ruby/debug

Tutte le issue di ruby/debug

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.