-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Brandon Weaver edited this page Jun 1, 2014
·
2 revisions
Welcome to the pry-macro wiki! Here you'll find a bit more detail than the readme to get you going!
Help Banner:
Usage: record
Starts recording a macro.
Defines a few extra instance variables on the pry session for saving the starting point of the recording, and a cache for defined macros that haven't been saved.
Help Banner:
Usage: stop [-n name] [-d desc]
Stops recording a macro, loads the command, and caches it for later saving if
desired. If no name is provided, user will be prompted for one. Descriptions
may be provided, but will default to 'no description'
-n, --name Name to use to define the macro
-d, --desc Description of the macro
-v, --verbose Echoes back the macro definition
-h, --help Show this message.
Help Banner:
Usage: save-macro [-p path]
Saves a cached macro to your ~/.pryrc or the path specified.
-p, --path Pathname to save macro in
-h, --help Show this message.
Fair warning, as of 0.0.2, there needs to be a .pryrc file in the directory you specify for it to save there. This will be fixed soon.