just playing with tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

FAQ: Mention when users should use `jj-lib` or integrate via the CLI

authored by

Philip Metzger and committed by
Philip Metzger
7d1041c9 6d59da45

+14
+14
docs/FAQ.md
··· 305 305 306 306 We hope to integrate with Gerrit natively in the future. 307 307 308 + ### I want to write a tool which integrates with Jujutsu. Should I use the library or parse the CLI? 309 + 310 + There are some trade-offs and there is no definitive answer yet. 311 + 312 + * Using `jj-lib` avoids parsing command output and makes error handling easier. 313 + * `jj-lib` is not a stable API, so you may have to make changes to your tool 314 + when the API changes. 315 + * The CLI is not stable either, so you may need to make your tool detect the 316 + different versions and call the right command. 317 + * Using the CLI means that your tool will work with custom-built `jj` binaries, 318 + like the one at Google (if you're using the library, you will not be able to 319 + detect custom backends and more). 320 + 321 + 308 322 [bookmarks_conflicts]: bookmarks.md#conflicts 309 323 310 324 [change ID]: glossary.md#change-id