# Path: grappa/config.py
# def validate(method):
#     def validator(self, name, *args):
#     def __init__(self):
#     def __getattr__(self, name):
#     def __setattr__(self, name, value):
# class Config(object):


import functools
from colorama import Fore, Style
from .config import config
# -*- coding: utf-8 -*-



class ErrorTemplate(object):
    """
    ErrorTemplate is used to compose and render a human-friendly
    descriptive error message.
    """

    separator = ' ' * 6

    section_separator = '\n\n  '

    header = 'Oops! Something went wrong!'

    def __init__(self):
        self.sections = []

    @property
    def color(self):
        return Style.BRIGHT + Fore.GREEN if config.use_colors else ''

    @property
    def reset(self):

# Path: grappa/config.py
# def validate(method):
#     def validator(self, name, *args):
#     def __init__(self):
#     def __getattr__(self, name):
#     def __setattr__(self, name, value):
# class Config(object):


# Path: grappa/template.py
import functools
from colorama import Fore, Style
from .config import config

# -*- coding: utf-8 -*-



class ErrorTemplate(object):
    """
    ErrorTemplate is used to compose and render a human-friendly
    descriptive error message.
    """

    separator = ' ' * 6

    section_separator = '\n\n  '

    header = 'Oops! Something went wrong!'

    def __init__(self):
        self.sections = []

    @property
    def color(self):
        return Style.BRIGHT + Fore.GREEN if config.use_colors else ''

    @property
    def reset(self):

        return Style.RESET_ALL if config.use_colors else ''