Skip to content

docs: document the mcpp-short-cmd aliases in both READMEs (#313) - #323

Merged
Sunrisepeak merged 1 commit into
mainfrom
docs/short-commands
Jul 31, 2026
Merged

docs: document the mcpp-short-cmd aliases in both READMEs (#313)#323
Sunrisepeak merged 1 commit into
mainfrom
docs/short-commands

Conversation

@speak-agent

Copy link
Copy Markdown
Member

Covers the "命令自身支持别名调用" item in #313.

xlings install mcpp-short-cmd -y already ships
(xim-pkgindex pkgs/m/mcpp-short-cmd.lua),
but nothing in this repo mentioned it — so the answer to "does mcpp support
aliases" read as "no, add them to your shell rc yourself".

Where it goes

Under the recommended xlings install mcpp block, as a collapsed
<details> — not a new numbered option. It isn't a way to install mcpp; it's
something you add after installing it. Collapsed keeps a 30-row table out of
the way of first-time readers.

Both README.md and README.zh-CN.md.

Content

One command, the naming rule, and the full table:

Registers 30 shims, so mcpp build becomes mbuild. Naming rule: initial of
every word but the last, plus the last word in full — mcpp self doctor
msdoctor. mp is bare mcpp. They alias the mcpp shim rather than a
fixed binary, so xlings use mcpp <ver> switches them too.

The rule is stated so the table works as a reference rather than something to
memorise, and the shim detail answers the obvious follow-up ("do the short
commands still point at the old version after I switch?").

Verified

Both tables were diffed entry-by-entry against the descriptor's SHORT_CMDS
map: 30/30 present, no extras, no wrong expansion, in both languages.
Worth doing — a hand-copied alias table is exactly the kind of thing that
silently drifts one entry.

`xlings install mcpp-short-cmd -y` has shipped (openxlings/xim-pkgindex
pkgs/m/mcpp-short-cmd.lua) but nothing in this repo mentioned it, so the
answer to "does mcpp support command aliases" read as "no, write them into
your shell rc yourself".

Folded in under the recommended xlings install rather than as another
numbered option: it is not a way to install mcpp, it is a thing you can add
after installing it.

Both tables are generated from the descriptor's SHORT_CMDS map and checked
against it entry by entry — 30/30, no drift. The naming rule is stated so
the table is a reference, not something to memorise: initial of every word
but the last, last word in full (`mcpp self doctor` -> `msdoctor`).
@Sunrisepeak
Sunrisepeak merged commit 8c5e0bd into main Jul 31, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants