Skip to content

Tip mechanism for vp cli #546

@hyf0

Description

@hyf0

Some notes:

  • Tip should be one line to keep things compact.
  • The frequency of showing tips should be controlled.
    • Always show tips for errored commands
    • A tip will be only be show one time per day, per week or per installation.
  • Related tips will be showed if they're related to ongoing comand. Otherwise, choose other "not that related" tips.
  • These tips should also be injected to AGENTS.md/SKILLS if possible
    • We should find a way generate tips into text and inject them into AGENTS.md or SKILLS.md

Scenarios

Run vp ls in non-project folder

Image
Tip: Run `vp ls -g` to show installed global binaries

Show shorter alias when people are using long version

Image
Tip: `vp ls` is the shorter version of `vp list`

Turn off the vp env management

Tip: Did you know `vp env off` could disable node version management while using vp with other tools

Wrong usage about vp [script]/[local-bin]

vp typecheck // ❌ vp doesn't support this
Tip: To run local installed bin like tsc, use `vpx [local bin]`, for script use `vp run [script]`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions