Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce cd command #971

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Introduce cd command #971

merged 1 commit into from
Jul 3, 2024

Commits on Jul 3, 2024

  1. Introduce cd command

    It's essentially a combination of pushws and popws commands that are
    easier to use.
    
    Help message:
    
    ```
    Usage: cd ([target]|..)
    
    IRB uses a stack of workspaces to keep track of context(s), with `pushws` and `popws` commands to manipulate the stack.
    The `cd` command is an attempt to simplify the operation and will be subject to change.
    
    When given:
    - an object, cd will use that object as the new context by pushing it onto the workspace stack.
    - "..", cd will leave the current context by popping the top workspace off the stack.
    - no arguments, cd will move to the top workspace on the stack by popping off all workspaces.
    
    Examples:
    
      cd Foo
      cd Foo.new
      cd @ivar
      cd ..
      cd
    ```
    st0012 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    b10c68c View commit details
    Browse the repository at this point in the history