|
1 | 1 | [1]> node ../node_modules/vite-plus/bin/oxfmt # should reject non-LSP usage |
2 | | -This oxfmt wrapper is for IDE extension use only (--lsp mode). |
| 2 | +This oxfmt wrapper is for IDE extension use only (lsp or stdin mode). |
3 | 3 | To format your code, run: vp fmt |
4 | 4 |
|
5 | 5 | [1]> node ../node_modules/vite-plus/bin/oxfmt --help # should reject non-LSP usage |
6 | | -This oxfmt wrapper is for IDE extension use only (--lsp mode). |
| 6 | +This oxfmt wrapper is for IDE extension use only (lsp or stdin mode). |
7 | 7 | To format your code, run: vp fmt |
8 | 8 |
|
9 | | -> node ../node_modules/vite-plus/bin/oxfmt --lsp --help # should exercise import path |
| 9 | +> node ../node_modules/vite-plus/bin/oxfmt --lsp --help # should allow LSP mode |
| 10 | +Usage: [-c=PATH] [PATH]... |
| 11 | + |
| 12 | +Mode Options: |
| 13 | + --init Initialize `.oxfmtrc.json` with default values |
| 14 | + --migrate=SOURCE Migrate configuration to `.oxfmtrc.json` from specified source |
| 15 | + Available sources: prettier, biome |
| 16 | + --lsp Start language server protocol (LSP) server |
| 17 | + --stdin-filepath=PATH Specify the file name to use to infer which parser to use |
| 18 | + |
| 19 | +Output Options: |
| 20 | + --write Format and write files in place (default) |
| 21 | + --check Check if files are formatted, also show statistics |
| 22 | + --list-different List files that would be changed |
| 23 | + |
| 24 | +Config Options |
| 25 | + -c, --config=PATH Path to the configuration file (.json, .jsonc, .ts, .mts, .cts, .js, |
| 26 | + .mjs, .cjs) |
| 27 | + |
| 28 | +Ignore Options |
| 29 | + --ignore-path=PATH Path to ignore file(s). Can be specified multiple times. If not |
| 30 | + specified, .gitignore and .prettierignore in the current directory are |
| 31 | + used. |
| 32 | + --with-node-modules Format code in node_modules directory (skipped by default) |
| 33 | + |
| 34 | +Runtime Options |
| 35 | + --no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched |
| 36 | + --threads=INT Number of threads to use. Set to 1 for using only 1 CPU core. |
| 37 | + |
| 38 | +Available positional items: |
| 39 | + PATH Single file, path or list of paths. Glob patterns are also supported. |
| 40 | + (Be sure to quote them, otherwise your shell may expand them before |
| 41 | + passing.) Exclude patterns with `!` prefix like `'!**/fixtures/*.js'` |
| 42 | + are also supported. If not provided, current working directory is used. |
| 43 | + |
| 44 | +Available options: |
| 45 | + -h, --help Prints help information |
| 46 | + -V, --version Prints version information |
| 47 | + |
| 48 | + |
| 49 | +> node ../node_modules/vite-plus/bin/oxfmt --stdin-filepath=a.ts --help # should allow Stdin mode |
10 | 50 | Usage: [-c=PATH] [PATH]... |
11 | 51 |
|
12 | 52 | Mode Options: |
|
0 commit comments