You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I added serve I just treated it as a special case of run. That’s why it’s in CargoCommand instead of Command.
I didn’t know that CargoCommands don’t get help support. Maybe this should be added for all of them, not just serve. It seems a bit strange that --help doesn’t list all commands available. A user has to guess that cargo component has for example its own run command, but fmt is just propagated. The current --help makes it seem like all subcommands except for the ones in the Command enum are propagated.
cargo component serve
does not show incargo component --help
and this is becauseserve
isn't a directly supportedcargo-component
command, like:cargo-component/src/bin/cargo-component.rs
Lines 67 to 76 in 5063442
And, instead, it is a
cargo
command (not really, but, as per the code's nomenclature, yes):cargo-component/src/lib.rs
Lines 74 to 83 in 5063442
I think it would be helpful to add
serve
as a propercargo-component
command for discoverability of the feature*.The text was updated successfully, but these errors were encountered: