Commit 524263c
Migrate hphp/ from Clap 3 to Clap 4
Summary:
This is a Claude Code generated diff stack to migrate all existing users of Clap 3 to Clap 4. It follows CLI Foundation ["Clap 4 Migration"](https://www.internalfb.com/wiki/CLI_Foundation/Guidelines_&_How_To/Frameworks_&_Main_Libraries/Rust/Clap_4_Migration/) wiki and "clap4-migration" Claude skill based on it and the Clap changelogs.
[Clap 2 and 3 have been deprecated for over 3 years.](https://fb.workplace.com/groups/clifoundation/posts/753507606006249/) They will be deleted soon and this should make it much easier for everyone to move over.
Sandcastle should be green indicating that the CLI builds succesfully and any tests related should be good too. Considering there are over a hundred CLIs using Clap 2 and 3, this as good of a signal we are able of getting. If you need more signal, we highly recommend you to look into [Scrut](https://www.internalfb.com/intern/staticdocs/scrut/docs/), an end-to-end CLI testing toolkit. Though this is outside of the scope for this massive diff stack.
If you want additional assurances that you can roll back. You might want to have a look at [`cli.deployer`](https://www.internalfb.com/wiki/Cli.deployer/)
**Please make sure to review the diff in case of any issues. There might be some slight changes to the CLI due to the large amount of changes that have been seen in Clap over the last years. If you want to make further changes, please make a new diff rebased on this one and they can land them together.**
---
Migrate 13 BUCK file(s) in hphp/ from clap-3 to clap (Clap 4).
Reviewed By: dtolnay
Differential Revision: D93109006
fbshipit-source-id: 268d5cf7da6bbeaad5f799968be449d2752567381 parent 7029bde commit 524263c
11 files changed
Lines changed: 44 additions & 175 deletions
File tree
- hphp/hack/src
- asdl_to_rust/lrgen
- depgraph
- depgraph_decompress/cargo/depgraph_decompress
- hhdg/cargo/hhdg
- generate_hhi/cargo/generate_hhi
- hh_manual
- hh_naming_table_builder
- hhi/rust
- rust_to_ocaml/rust_to_ocaml
- utils/ffi_cbindgen
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
0 commit comments