Skip to content

Know if we are running in REPL mode in click methods #126

@davetapley

Description

@davetapley

Is there a way to know if we are running in REPL mode in the click methods?

Ideally, I'd also like to know whether this is repl being invoked the first time, or we are in the REPL loop.

For context:
My CLI prints out some debug info on startup, which works great in normal CLI mode, but in REPL it prints out on every command, which is too much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions