diff options
| author | Nick Brassel <[email protected]> | 2023-01-19 10:56:15 +1100 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-19 10:56:15 +1100 | 
| commit | 4723f308adb7d1d4a4136722e2f576a398695559 (patch) | |
| tree | 85abc46a4a56a21f4d4da0d5e45699fefd0dfade /lib/python/qmk/cli/cformat.py | |
| parent | 88ec588ae7f6d36b23578135cde8b7a5160ff8b7 (diff) | |
| download | qmk_firmware-4723f308adb7d1d4a4136722e2f576a398695559.tar.gz qmk_firmware-4723f308adb7d1d4a4136722e2f576a398695559.zip | |
Remove CLI commands: `multibuild`, `cformat`, `fileformat`, `pyformat`. (#19629)
Diffstat (limited to 'lib/python/qmk/cli/cformat.py')
| -rwxr-xr-x | lib/python/qmk/cli/cformat.py | 28 | 
1 files changed, 0 insertions, 28 deletions
| diff --git a/lib/python/qmk/cli/cformat.py b/lib/python/qmk/cli/cformat.py deleted file mode 100755 index 9d0ecaeba3..0000000000 --- a/lib/python/qmk/cli/cformat.py +++ /dev/null @@ -1,28 +0,0 @@ -"""Point people to the new command name. -""" -import sys -from pathlib import Path - -from milc import cli - - [email protected]('-n', '--dry-run', arg_only=True, action='store_true', help="Flag only, don't automatically format.") [email protected]('-b', '--base-branch', default='origin/master', help='Branch to compare to diffs to.') [email protected]('-a', '--all-files', arg_only=True, action='store_true', help='Format all core files.') [email protected]('--core-only', arg_only=True, action='store_true', help='Format core files only.') [email protected]('files', nargs='*', arg_only=True, help='Filename(s) to format.') [email protected]('Pointer to the new command name: qmk format-c.', hidden=True) -def cformat(cli): -    """Pointer to the new command name: qmk format-c. -    """ -    cli.log.warning('"qmk cformat" has been renamed to "qmk format-c". Please use the new command in the future.') -    argv = [sys.executable, *sys.argv] -    argv[argv.index('cformat')] = 'format-c' -    script_path = Path(argv[1]) -    script_path_exe = Path(f'{argv[1]}.exe') - -    if not script_path.exists() and script_path_exe.exists(): -        # For reasons I don't understand ".exe" is stripped from the script name on windows. -        argv[1] = str(script_path_exe) - -    return cli.run(argv, capture_output=False).returncode | 
