old_contents: import click
  import click_log
  from .view import main as view
  from . import code
  from . import debug
  from . import setup
  from . import submit
  from . import test
  from . import repl
  from . import config
  from . import ls
  from . import clip
  from ..utils.logging import logger
  from ..utils.config import check_config_path
  from ..utils.exceptions import handle_exceptions
  
  CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
  
  
  # TODO correct handle_exceptions using modifying ctx.invoke
  # and use single exception
  @click.group(context_settings=CONTEXT_SETTINGS)
  @click.version_option()
  @click_log.simple_verbosity_option(logger, envvar='TERMICODER_VERBOSE', default='info')
  @handle_exceptions(BaseException)
  def main():
      '''
      \b
      __       __                      _                __
      \ \     / /____  _________ ___  (_)________  ____/ /__  _____
       \ \   / __/ _ \/ ___/ __ `__ \/ / ___/ __ \/ __  / _ \/ ___/
       / /  / /_/  __/ /  / / / / / / / /__/ /_/ / /_/ /  __/ /
      /_/   \__/\___/_/  /_/ /_/ /_/_/\___/\____/\__,_/\___/_/
  
      view, code & submit problems directly from terminal.
      '''
      if(check_config_path() is False):
          # TODO remove repetitive warning in REPL
          logger.warn(
              "Termicoder config has not been initialized\n"
              "Some features might not work\n"
              "Run `termicoder config init` to access all features"
          )
  
  
  sub_commands = [
      {
          "cmd": code.main,
          "name": "code"
      },
      {
          "cmd": debug.main,
          "name": "debug"
      },
      {
          "cmd": setup.main,
          "name": "setup"
      },
      {
          "cmd": submit.main,
          "name": "submit"
      },
      {
          "cmd": test.main,
          "name": "test"
      },
      {
          "cmd": view,
          "name": "view"
      },
      {
          "cmd": repl.main,
          "name": "repl"
      },
      {
          "cmd": config.main,
          "name": "config"
      },
      {
          "cmd": ls.main,
          "name": "list"
      },
      {
          "cmd": clip.main,
          "name": "clip"
      }
  ]
  
  
  for command in sub_commands:
      main.add_command(**command)
  
  
  __all__ = ["main"]
  
new_contents: import click
  import click_log
  from .view import main as view
  from . import code
  from . import debug
  from . import setup
  from . import submit
  from . import test
  from . import repl
  from . import config
  from . import ls
  from . import clip
  from ..utils.logging import logger
  from ..utils.config import check_config_path
  from ..utils.exceptions import handle_exceptions
  
  CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
  
  
  # TODO correct handle_exceptions using modifying ctx.invoke
  # and use single exception
  @click.group(context_settings=CONTEXT_SETTINGS)
  @click.version_option()
  @click_log.simple_verbosity_option(logger, envvar='TERMICODER_VERBOSITY', default='info')
  @handle_exceptions(BaseException)
  def main():
      '''
      \b
      __       __                      _                __
      \ \     / /____  _________ ___  (_)________  ____/ /__  _____
       \ \   / __/ _ \/ ___/ __ `__ \/ / ___/ __ \/ __  / _ \/ ___/
       / /  / /_/  __/ /  / / / / / / / /__/ /_/ / /_/ /  __/ /
      /_/   \__/\___/_/  /_/ /_/ /_/_/\___/\____/\__,_/\___/_/
  
      view, code & submit problems directly from terminal.
      '''
      if(check_config_path() is False):
          # TODO remove repetitive warning in REPL
          logger.warn(
              "Termicoder config has not been initialized\n"
              "Some features might not work\n"
              "Run `termicoder config init` to access all features"
          )
  
  
  sub_commands = [
      {
          "cmd": code.main,
          "name": "code"
      },
      {
          "cmd": debug.main,
          "name": "debug"
      },
      {
          "cmd": setup.main,
          "name": "setup"
      },
      {
          "cmd": submit.main,
          "name": "submit"
      },
      {
          "cmd": test.main,
          "name": "test"
      },
      {
          "cmd": view,
          "name": "view"
      },
      {
          "cmd": repl.main,
          "name": "repl"
      },
      {
          "cmd": config.main,
          "name": "config"
      },
      {
          "cmd": ls.main,
          "name": "list"
      },
      {
          "cmd": clip.main,
          "name": "clip"
      }
  ]
  
  
  for command in sub_commands:
      main.add_command(**command)
  
  
  __all__ = ["main"]
  
subject: change env variable to verbosity