# Path: termicoder/utils/config.py
# def get_config_path(ensure_exists=False):
#     config_path = click.get_app_dir('termicoder')
#     if(ensure_exists is True and not os.path.exists(config_path)):
#         logger.error(
#             "Termicoder config not initialized\n"
#             "Requested operation requires configuration files to proceed\n"
#             "Run `termicoder config init` and try executing this command again"
#         )
#         raise click.Abort("Config not initialized")
#     return config_path


import click
from ...utils.config import get_config_path


@click.command()
def main():
    """
    Edit the configuration.

    Launches the config folder for modifying settings.
    """


# Path: termicoder/utils/config.py
# def get_config_path(ensure_exists=False):
#     config_path = click.get_app_dir('termicoder')
#     if(ensure_exists is True and not os.path.exists(config_path)):
#         logger.error(
#             "Termicoder config not initialized\n"
#             "Requested operation requires configuration files to proceed\n"
#             "Run `termicoder config init` and try executing this command again"
#         )
#         raise click.Abort("Config not initialized")
#     return config_path


# Path: termicoder/cli/config/edit.py
import click
from ...utils.config import get_config_path



@click.command()
def main():
    """
    Edit the configuration.

    Launches the config folder for modifying settings.
    """


    config_path = get_config_path(ensure_exists=True)