# -*- encoding: utf-8 -*-
# Copyright (c) 2020 Stephen Bunn <stephen@bunn.io>
# ISC License <https://choosealicense.com/licenses/isc>
"""Contains package constants that modify the global functions of the package.
Utilize the :func:`~.constants.configure` method to quickly and easily disable all
future application of :class:`~.chalk.Chalk` to strings.
>>> from chalky import configure, fg
>>> configure(disable=True)
>>> print(fg.green | "I'm NOT green text")
"""
DISABLED = False
[docs]def is_disabled() -> bool:
"""Callable to evaluate the disabled conditional.
Returns:
bool:
True if chalky is disabled, otherwise False.
"""
return DISABLED