runner.cli.utils

Utility functions for the derex commands.

Module Contents

Functions

ensure_project(func)

Decorator that checks if the current command was invoked from inside a project,

red(string: str) → str

runner.cli.utils.ensure_project(func)[source]

Decorator that checks if the current command was invoked from inside a project, (i.e. if the click context has a project) and prints a nice message if it’s not.

runner.cli.utils.red(string: str)str[source]