chayev / yurl

Universal Links / App Links Validator
https://yurl.chayev.com/
MIT License
30 stars 7 forks source link

Error codes and path checks for use in automation #69

Open aceslick911 opened 1 year ago

aceslick911 commented 1 year ago

For yurl to be super useful as part of automation/testing I'd recommend throwing an error code in the CLI when the deeplinking is presumed to be not working due to a failure condition.

This would mean teams could potentially use yurl commands in CI or automation to detect when problems with deeplinking happen.

Specifics:

eg.

> yurl aasa validate "https://MYDOMAIN.com/PATH1/PATH2" "1234AAAA" "com.MYDOMAIN.MYAPP.APP"

< AASA Active validation [pass]
< AASA path: /PATH1/PATH2 [failed: no match for "com.MYDOMAIN.MYAPP.APP"]
< "/PATH1/PATH2" provided does not match any of:
< https://MYDOMAIN.com/PATH3
< https://MYDOMAIN.com/PATH4

exited with error code 1