mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +01:00
rules: npm and yarn subcommands
This commit is contained in:
parent
b2c95c30e7
commit
96a588799d
3 changed files with 133 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pay-respects"
|
name = "pay-respects"
|
||||||
version = "0.4.14"
|
version = "0.4.15"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# for crates.io
|
# for crates.io
|
||||||
|
|
|
||||||
78
rules/npm.toml
Normal file
78
rules/npm.toml
Normal file
|
|
@ -0,0 +1,78 @@
|
||||||
|
command = "npm"
|
||||||
|
|
||||||
|
[[match_err]]
|
||||||
|
pattern = [
|
||||||
|
"unknown command"
|
||||||
|
]
|
||||||
|
suggest = [
|
||||||
|
'''
|
||||||
|
{{command[0]}} {{typo[1](
|
||||||
|
access,
|
||||||
|
adduser,
|
||||||
|
audit,
|
||||||
|
bugs,
|
||||||
|
cache,
|
||||||
|
ci,
|
||||||
|
completion,
|
||||||
|
config,
|
||||||
|
dedupe,
|
||||||
|
deprecate,
|
||||||
|
diff,
|
||||||
|
dist-tag,
|
||||||
|
docs,
|
||||||
|
doctor,
|
||||||
|
edit,
|
||||||
|
exec,
|
||||||
|
explain,
|
||||||
|
explore,
|
||||||
|
find-dupes,
|
||||||
|
fund,
|
||||||
|
get,
|
||||||
|
help,
|
||||||
|
help-search,
|
||||||
|
hook,
|
||||||
|
init,
|
||||||
|
install,
|
||||||
|
install-ci-test,
|
||||||
|
install-test,
|
||||||
|
link,
|
||||||
|
ll,
|
||||||
|
login,
|
||||||
|
logout,
|
||||||
|
ls,
|
||||||
|
org,
|
||||||
|
outdated,
|
||||||
|
owner,
|
||||||
|
pack,
|
||||||
|
ping,
|
||||||
|
pkg,
|
||||||
|
prefix,
|
||||||
|
profile,
|
||||||
|
prune,
|
||||||
|
publish,
|
||||||
|
query,
|
||||||
|
rebuild,
|
||||||
|
repo,
|
||||||
|
restart,
|
||||||
|
root,
|
||||||
|
run-script,
|
||||||
|
sbom,
|
||||||
|
search,
|
||||||
|
set,
|
||||||
|
shrinkwrap,
|
||||||
|
star,
|
||||||
|
stars,
|
||||||
|
start,
|
||||||
|
stop,
|
||||||
|
team,
|
||||||
|
test,
|
||||||
|
token,
|
||||||
|
uninstall,
|
||||||
|
unpublish,
|
||||||
|
unstar,
|
||||||
|
update,
|
||||||
|
version,
|
||||||
|
view,
|
||||||
|
whoami
|
||||||
|
)}} {{command[2:]}} '''
|
||||||
|
]
|
||||||
|
|
@ -1,5 +1,59 @@
|
||||||
command = "yarn"
|
command = "yarn"
|
||||||
|
|
||||||
|
[[match_err]]
|
||||||
|
pattern = [
|
||||||
|
"not found"
|
||||||
|
]
|
||||||
|
suggest = [
|
||||||
|
'''
|
||||||
|
#[err_contains(command)]
|
||||||
|
{{command[0]}} {{typo[1](
|
||||||
|
access,
|
||||||
|
add,
|
||||||
|
audit,
|
||||||
|
autoclean,
|
||||||
|
bin,
|
||||||
|
cache,
|
||||||
|
check,
|
||||||
|
config,
|
||||||
|
create,
|
||||||
|
exec,
|
||||||
|
generate-lock-entry,
|
||||||
|
generateLockEntry,
|
||||||
|
global,
|
||||||
|
help,
|
||||||
|
import,
|
||||||
|
info,
|
||||||
|
init,
|
||||||
|
install,
|
||||||
|
licenses,
|
||||||
|
link,
|
||||||
|
list,
|
||||||
|
login,
|
||||||
|
logout,
|
||||||
|
node,
|
||||||
|
outdated,
|
||||||
|
owner,
|
||||||
|
pack,
|
||||||
|
policies,
|
||||||
|
publish,
|
||||||
|
remove,
|
||||||
|
run,
|
||||||
|
tag,
|
||||||
|
team,
|
||||||
|
unlink,
|
||||||
|
unplug,
|
||||||
|
upgrade,
|
||||||
|
upgrade-interactive,
|
||||||
|
upgradeInteractive,
|
||||||
|
version,
|
||||||
|
versions,
|
||||||
|
why,
|
||||||
|
workspace,
|
||||||
|
workspaces
|
||||||
|
)}} {{command[2:]}} '''
|
||||||
|
]
|
||||||
|
|
||||||
[[match_err]]
|
[[match_err]]
|
||||||
pattern = [
|
pattern = [
|
||||||
"error `install` has been replaced with `add` to add new dependencies."
|
"error `install` has been replaced with `add` to add new dependencies."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue