"""Sets `cli.config.<subcommand>.keyboard` based on environment.
This will rewrite cli.config.<subcommand>.keyboard if the user did not pass `--keyboard` and the directory they are currently in is a keyboard or keymap directory.
"""
@functools.wraps(func)
defwrapper(*args,**kwargs):
# Ensure that `--keyboard` was not passed and CWD is under `qmk_firmware/keyboards`
"""Sets `cli.config.<subcommand>.keymap` based on environment.
This will rewrite cli.config.<subcommand>.keymap if the user did not pass `--keymap` and the directory they are currently in is a keymap, layout, or user directory.
"""
@functools.wraps(func)
defwrapper(*args,**kwargs):
# Ensure that `--keymap` was not passed and that we're under `qmk_firmware`