sway icon indicating copy to clipboard operation
sway copied to clipboard

`forc`: Add a manual `clap` `--help` implementation that also lists plugin-provided commands

Open mitchmindtree opened this issue 2 years ago • 4 comments

It's nice that we can support new commands via plugins, but the fact that they don't show up in the default --help output is probably confusing for users who 1. don't realise those plugin-commands don't show up in the default help or 2. that some commands are even provided by plugins.

We should consider a manual implementation of --help that includes the plugin-provided commands too.

mitchmindtree avatar Jan 19 '23 23:01 mitchmindtree

One way that might work to preserve the ability to add new plugins without touching forc code itself would be to use clap's after_help to list the subcommands provided from the installed plugins. We could probably even format the text so they look like they're part of the core subcommands.

sdankel avatar Jan 19 '23 23:01 sdankel

This previously opened issue regarding forc --list might be helpful: https://github.com/FuelLabs/sway/issues/702

spiral-ladder avatar Jan 20 '23 02:01 spiral-ladder

Hi there,

I'm a returning contributor from the last OD hack and would love to help out with this issue and contribute further to the project.

Looking forward to collaborating! 🚀

JoE11-y avatar Apr 26 '25 14:04 JoE11-y

Hi, I would like to take on this issue. I participated in ODHack 12 regarding a different fuel issue and I'm much more comfortable now working with Fuel and its source code.

FriendlyLifeguard avatar Apr 26 '25 16:04 FriendlyLifeguard