Skip to content

Commit 9317ebc

Browse files
authored
fix(tasks/website): Upload formatter cli.snap (#16141)
This fixes `main` CI failure. And, make `cargo t` to generate snapshots.
1 parent 0549ae5 commit 9317ebc

File tree

4 files changed

+87
-2
lines changed

4 files changed

+87
-2
lines changed

tasks/website_formatter/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ workspace = true
1010

1111
[[bin]]
1212
name = "website_formatter"
13-
test = false
1413
doctest = false
1514

1615
[dependencies]
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
source: tasks/website_formatter/src/cli.rs
3+
expression: snapshot
4+
---
5+
---
6+
search: false
7+
---
8+
9+
10+
## Usage
11+
**`oxfmt`** \[**`-c`**=_`PATH`_\] \[_`PATH`_\]...
12+
13+
## Output Options
14+
- **` --check`** —
15+
Check mode - check if files are formatted, also show statistics
16+
- **` --list-different`** —
17+
List mode - list files that would be changed
18+
19+
20+
21+
## Basic Options
22+
- **`-c`**, **`--config`**=_`PATH`_ —
23+
Path to the configuration file
24+
25+
26+
27+
## Ignore Options
28+
- **` --ignore-path`**=_`PATH`_ —
29+
Path to ignore file(s). Can be specified multiple times. If not specified, .gitignore and .prettierignore in the current directory are used.
30+
- **` --with-node-modules`** —
31+
Format code in node_modules directory (skipped by default)
32+
33+
34+
35+
## Misc Options
36+
- **` --lsp`** —
37+
Start language server protocol (LSP) server
38+
- **` --no-error-on-unmatched-pattern`** —
39+
Do not exit with error when pattern is unmatched
40+
- **` --threads`**=_`INT`_ —
41+
Number of threads to use. Set to 1 for using only 1 CPU core.
42+
43+
44+
45+
## Available positional items:
46+
- _`PATH`_ —
47+
Single file, single path or list of paths. If not provided, current working directory is used. Glob is supported only for exclude patterns like `'!**/fixtures/*.js'`.
48+
49+
50+
51+
## Available options:
52+
- **`-h`**, **`--help`** —
53+
Prints help information
54+
- **`-V`**, **`--version`** —
55+
Prints version information
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
source: tasks/website_formatter/src/cli.rs
3+
expression: snapshot
4+
---
5+
Usage: [-c=PATH] [PATH]...
6+
7+
Output Options
8+
--check Check mode - check if files are formatted, also show statistics
9+
--list-different List mode - list files that would be changed
10+
11+
Basic Options
12+
-c, --config=PATH Path to the configuration file
13+
14+
Ignore Options
15+
--ignore-path=PATH Path to ignore file(s). Can be specified multiple times. If not
16+
specified, .gitignore and .prettierignore in the current directory are
17+
used.
18+
--with-node-modules Format code in node_modules directory (skipped by default)
19+
20+
Misc Options
21+
--lsp Start language server protocol (LSP) server
22+
--no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched
23+
--threads=INT Number of threads to use. Set to 1 for using only 1 CPU core.
24+
25+
Available positional items:
26+
PATH Single file, single path or list of paths. If not provided, current
27+
working directory is used. Glob is supported only for exclude patterns
28+
like `'!**/fixtures/*.js'`.
29+
30+
Available options:
31+
-h, --help Prints help information
32+
-V, --version Prints version information

tasks/website_linter/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ workspace = true
1010

1111
[[bin]]
1212
name = "website_linter"
13-
test = false
1413
doctest = false
1514

1615
[dependencies]

0 commit comments

Comments
 (0)