carapace-bin
carapace-bin copied to clipboard
npm
https://docs.npmjs.com/cli/v7/commands
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
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?
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
Perfect, thanks! Just tested it locally, and it worked.