import fuddly.cli.argparse_wrapper as argparse
from fuddly.framework.plumbing import FmkPlumbing, FmkShell


def start(args: argparse.Namespace):
    fmkdb = args.fmkdb
    external_display = args.external_display
    quiet = args.quiet
    tui = args.tui

    fmk = FmkPlumbing(external_term=external_display, fmkdb_path=fmkdb, quiet=quiet, tui=tui)
    fmk.start()

    shell = FmkShell("Fuddly Shell", fmk)
    shell.cmdloop()
