click-contrib / click-repl

Subcommand REPL for click apps
MIT License
215 stars 41 forks source link

Added repl context object #117

Closed GhostOps77 closed 2 months ago

GhostOps77 commented 2 months ago

similar to click's context object, but its for keeping track on the promptsession object.

By this, the user can modify the prompt in runtime, can also change the prompt text, and view history.

GhostOps77 commented 2 months ago

@auvipy can u review this pls?

auvipy commented 2 months ago

Yes

GhostOps77 commented 2 months ago

its just for giving the user full control over the prompt session object for utmost customization of the prompt. changing prompt, and checking commands history are just some of them.

its also used for keeping track of each of its appropriate repl session, which will be useful if a repl is invoked inside an another repl

therefore, this PR is more like a feature request

GhostOps77 commented 2 months ago

@auvipy any more queries?

auvipy commented 2 months ago

why it was closed?

GhostOps77 commented 2 months ago

@auvipy i included a small, dead code idk how to rebase so i deleted the branch