Port new_keyboard.sh to CLI (#13706)
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
This commit is contained in:
parent
770a525425
commit
b021c2f2c5
7 changed files with 208 additions and 56 deletions
|
@ -240,6 +240,15 @@ def parse_configurator_json(configurator_file):
|
|||
return user_keymap
|
||||
|
||||
|
||||
def git_get_username():
|
||||
"""Retrieves user's username from Git config, if set.
|
||||
"""
|
||||
git_username = cli.run(['git', 'config', '--get', 'user.name'])
|
||||
|
||||
if git_username.returncode == 0 and git_username.stdout:
|
||||
return git_username.stdout.strip()
|
||||
|
||||
|
||||
def git_check_repo():
|
||||
"""Checks that the .git directory exists inside QMK_HOME.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue