
    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_keymap)FileType)	json_loadfilenamer+Tfile)typenargsarg_onlyhelpzImport data-driven keymapc                    | j                   j                  d   }t        |      }| j                  j	                  d|j
                   d        | j                  d       t        |      \  }}| j                  j	                  d| d       | j                  j	                  d| d| d	       | j                  j	                  d
       | j                  j	                  d| d| d       y )Nr   z{style_bright}Importing z.{style_normal} z/{fg_green}Imported a new keymap named {fg_cyan}z{fg_green}.{fg_reset}z9To start working on things, `cd` into {fg_cyan}keyboards/z	/keymaps/z{fg_reset},z4or open the directory in your preferred text editor.z*And build with {fg_yellow}qmk compile -kb z -km z{fg_reset}.)argsr   r   loginfonameecho_import_keymap)r   r   datakb_namekm_names        N/home/hanthebot/chat/keyboard/qmk_firmware/lib/python/qmk/cli/import/keymap.pyr   r      s     xx  #HXDGGLL-hmm_<MNOCHHRL%d+GWGGLLFwiOhijGGLLNwiW`ah`iivwxGGLLGHGGLL?ygYVcde    N)milcr   qmk.importersr   r   qmk.pathr   qmk.json_schemar   argument
subcommand r   r   <module>r#      sS     9  % jx}C$VT+,f - Ufr   