autocomplete
autocomplete copied to clipboard
feat: added support for Playwright
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) Feature
What is the current behavior? (You can also link to an open issue here) Does not support Playwright commands
What is the new behavior (if this is a feature change)? Added support for few commands used by playwright
Additional info:
Overview
src/playwright.ts:
Info:
src/npx.ts:
Info:
Single Functions:
postProcess:
function (out) {
const cli = [...suggestions].reduce(
(acc, { name }) => [...acc, name],
[]
);
return out
.split("\n")
.filter((name) => !cli.includes(name))
.map((name) => ({
name,
icon: "fig://icon?type=command",
loadSpec: name,
}));
}
URLs:
https://raw.githubusercontent.com/babel/logo/master/babel.pnghttps://reactnative.dev/img/pwa/manifest-icon-512.pnghttps://reactnative.dev/img/pwa/manifest-icon-512.pnghttps://tailwindcss.com/favicon-32x32.pnghttps://nextjs.org/static/favicon/favicon-16x16.pnghttps://raw.githubusercontent.com/pmndrs/branding/master/logo.svghttps://raw.githubusercontent.com/prisma/docs/main/src/images/favicon-16x16.pnghttps://eslint.org/assets/img/favicon.512x512.pnghttps://prettier.io/icon.pnghttps://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Typescript_logo_2020.svg/240px-Typescript_logo_2020.svg.pnghttps://avatars.githubusercontent.com/u/20165699?s=200&v=4https://fig.io/icons/fig-light.pnghttps://fig.io/icons/fig-light.pnghttps://nextjs.org/static/favicon/favicon-16x16.pnghttps://raw.githubusercontent.com/remotion-dev/remotion/main/packages/docs/static/img/logo-small.pnghttps://raw.githubusercontent.com/remotion-dev/remotion/main/packages/docs/static/img/logo-small.pnghttps://remix.run/favicon-light.1.pnghttps://remix.run/favicon-light.1.pnghttps://playwright.dev/img/playwright-logo.svg
Hello @wladiston, thank you very much for creating a Pull Request! Here is a small checklist to get this PR merged as quickly as possible:
- [ ] Do all subcommands / options which take arguments include the
argsproperty (args: {})? - [ ] Are all options modular? E.g.
-a-u-xinstead of-aux - [ ] Have all other checks passed?
Please add a 👍 as a reaction to this comment to show that you read this.
Thanks! I left some suggestions, let me know what you think!