Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm completer #462

Open
65 tasks
rsteube opened this issue Jul 9, 2021 · 3 comments
Open
65 tasks

npm completer #462

rsteube opened this issue Jul 9, 2021 · 3 comments
Labels
completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh

Comments

@rsteube
Copy link
Member

rsteube commented Jul 9, 2021

Command

npm

Description

npm is the package manager for the Node JavaScript platform.
It puts modules in place so that node can find them, and manages dependency conflicts intelligently.

Homepage

https://www.npmjs.com/

Documentation

https://docs.npmjs.com/cli/

Repository

https://github.com/npm/cli

Complexity

L

Anything else?

No response

Tasks

test and fix completion

  • access
  • adduser
  • audit
  • bin
  • bugs
  • cache
  • ci
  • completion
  • config
  • dedupe
  • deprecate
  • diff
  • dist-tag
  • docs
  • doctor
  • edit
  • exec
  • explain
  • explore
  • find-dupes
  • fund
  • get
  • help
  • hook
  • init
  • install
  • install-ci-test
  • install-test
  • link
  • ll
  • login
  • logout
  • ls
  • org
  • outdated
  • owner
  • pack
  • ping
  • prefix
  • profile
  • prune
  • publish
  • rebuild
  • repo
  • restart
  • root
  • run-script
  • search
  • set
  • set-script
  • shrinkwrap
  • star
  • stars
  • start
  • stop
  • team
  • test
  • token
  • uninstall
  • unpublish
  • unstar
  • update
  • version
  • view
  • whoami

Polar

Fund with Polar
@rsteube rsteube mentioned this issue Jul 12, 2021
@brunoroque06
Copy link
Contributor

run-script works fine! But run, which is an alias for run-script, does not. It is not recognized as a command. I guess the generated file for run should be exactly the same as this one: https://github.com/rsteube/carapace-bin/blob/master/completers/npm_completer/cmd/runScript.go (?). Can I help somehow?

@rsteube
Copy link
Member Author

rsteube commented Aug 8, 2022

You can add Aliases: []string{"run"} to the runScript command.

Here's an example: https://github.com/rsteube/carapace-bin/blob/master/completers/git_completer/cmd/blame.go#L13

@brunoroque06
Copy link
Contributor

Perfect, thanks! Just tested it locally, and it worked.

@rsteube rsteube added the completer High level tracking issue for completer label Jul 20, 2024
@rsteube rsteube changed the title npm npm completer Jul 20, 2024
@rsteube rsteube added enhancement New feature or request fund Fundable with polar.sh labels Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh
Projects
None yet
Development

No branches or pull requests

2 participants