oclif / plugin-commands

MIT License
8 stars 3 forks source link

feat: use oclif/table #763

Closed mdonnalley closed 6 days ago

mdonnalley commented 2 weeks ago

Use new @oclif/table

@W-16736216@

iowillhoit commented 6 days ago

Again, I think that vertical-with-outline looks a little nicer but it is not as messy with this table.

This command did uncover a bug with oclif/table though. The plugins link command does not have a summary only a multi-line description that uses back-ticks to format newlines. This causes the truncation to be miscalculated.

plugins install                    Installs a plugin into sf.
plugins link                       Links a plugin into the CLI for development.
                                  Installation of a linked plugin will override a user-installed or core plugin.

                                  e.g. I…
plugins remove                     Removes a plugin from the CLI.

It is more obvious when using the vertical dividers:

│ plugins install                  │ Installs a plugin into sf.                                                                                                           │
│ plugins link                     │ Links a plugin into the CLI for development.                                 │
│                                  │Installation of a linked plugin will override a user-installed or core plugin.│
│                                  │                                                                              │
│                                  │e.g. I…                                                                       │
│ plugins remove                   │ Removes a plugin from the CLI.                                                                                                       │

Here is a PR to add the summary https://github.com/oclif/plugin-plugins/pull/980