refactor(commands): move login/logout under platform namespace

Problem: `:CP login codeforces` was inconsistent with every other
command which uses `:CP <platform> <action>` ordering.

Solution: restructure to `:CP codeforces login` / `:CP codeforces
logout`. Remove `login`/`logout` from top-level `ACTIONS` and move
parsing into the platform branch of `parse_command`. Update completion
to offer `login`/`logout` as platform subcommands.
This commit is contained in:
Barrett Ruth 2026-03-05 14:10:05 -05:00
parent df934efb19
commit ccaedfebc1
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
3 changed files with 6 additions and 9 deletions

View file

@ -13,8 +13,6 @@ M.ACTIONS = {
'race',
'stress',
'submit',
'login',
'logout',
}
M.PLATFORM_DISPLAY_NAMES = {