
    7j                         d dl mZ d dlmZ d dlmZ d dlmZ  ej                  d ed      ddd	
       ej                  d      d               Zy)    )cli)import_keyboard)FileType)	json_loadfilenamer+Tfile)typenargsarg_onlyhelpzImport data-driven keyboardc                    | j                   j                  d   }t        |      }| j                  j	                  d|j
                   d        | j                  d       t        |      }| j                  j	                  d| d       | j                  j	                  d| d       | j                  j	                  d	       | j                  j	                  d
| d       y )Nr   z{style_bright}Importing z.{style_normal} z1{fg_green}Imported a new keyboard named {fg_cyan}z{fg_green}.{fg_reset}z9To start working on things, `cd` into {fg_cyan}keyboards/z{fg_reset},z4or open the directory in your preferred text editor.z*And build with {fg_yellow}qmk compile -kb z -km default{fg_reset}.)argsr   r   loginfonameecho_import_keyboard)r   r   datakb_names       P/home/hanthebot/chat/keyboard/qmk_firmware/lib/python/qmk/cli/import/keyboard.pyr   r      s     xx  #HXDGGLL-hmm_<MNOCHHRLt$GGGLLH	QjklGGLLNwiWdefGGLLGHGGLL?yHabc    N)milcr   qmk.importersr   r   qmk.pathr   qmk.json_schemar   argument
subcommand r   r   <module>r"      sS     =  % jx}C$VT-.d / Udr   