ruby/lib/irb/command
Stan Lo 57ca5960ad [ruby/irb] Restructure workspace management
(https://github.com/ruby/irb/pull/888)

* Remove dead irb_level method

* Restructure workspace management

Currently, workspace is an attribute of IRB::Context in most use cases.
But when some workspace commands are used, like `pushws` or `popws`, a
workspace will be created and used along side with the original workspace
attribute.

This complexity is not necessary and will prevent us from expanding
multi-workspace support in the future.

So this commit introduces a @workspace_stack ivar to IRB::Context so IRB
can have a more natural way to manage workspaces.

* Fix pushws without args

* Always display workspace stack after related commands are used

61560b99b3
2024-03-01 15:51:29 +00:00
..
backtrace.rb
base.rb [ruby/irb] Turn on frozen literal in files 2024-02-23 10:53:53 +00:00
break.rb
catch.rb
chws.rb [ruby/irb] Turn on frozen literal in files 2024-02-23 10:53:53 +00:00
continue.rb
debug.rb [ruby/irb] Fix irb:rdbg for ruby head 2024-02-19 11:01:30 +09:00
delete.rb
edit.rb
exit.rb
finish.rb
force_exit.rb
help.rb
history.rb
info.rb
irb_info.rb [ruby/irb] Turn on frozen literal in files 2024-02-23 10:53:53 +00:00
load.rb [ruby/irb] Turn on frozen literal in files 2024-02-23 10:53:53 +00:00
ls.rb
measure.rb
next.rb
pushws.rb [ruby/irb] Restructure workspace management 2024-03-01 15:51:29 +00:00
show_doc.rb [ruby/irb] Add help messages to show_source and show_doc 2024-02-25 15:22:33 +00:00
show_source.rb [ruby/irb] Add help messages to show_source and show_doc 2024-02-25 15:22:33 +00:00
step.rb
subirb.rb [ruby/irb] Turn on frozen literal in files 2024-02-23 10:53:53 +00:00
whereami.rb