Skip to content

{after,before}_command hooks should be unified with Pry::Hooks system #651

@banister

Description

@banister

Pry.commands.after_command("edit") becomes Pry.hooks.add_hook(:after_edit, :name)

Pry.commands.after_command("!!!") becomes Pry.hooks.add_hook(:"after_!!!", :name)

Note the symbol 'string' in the last example as :after_!!! is not a valid symbol

Consider making hook names 'indifferent' to string/symbols, so "after_!!!" is the same as :"after_!!!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions