feat(bridge): support primitive adbPath expansion#3
feat(bridge): support primitive adbPath expansion#3mpotthoff merged 3 commits intompotthoff:masterfrom
adbPath expansion#3Conversation
|
Well thank you for your great contribution! It looks really good so far. 😄 Sorry about the failing build. That's also partly my fault because the project still uses typescript 3.9.4 and I haven't taken the time to upgrade it to the latest and greatest yet 🙈 I will try to get everything up-to-date later today so that I can get your changes in. |
|
Okay, so I updated the tooling to the latest TypeScript version and also switched from TSLint to ESLint. It would be great if you could rebase your changes on my latest commit and fix any linter and compiler errors so that I can merge your changes. 😊 |
Support primitive path / variable expansion for `adbPath`. - Replace leading `~/` with user home directory. `~/adb` → `/Users/<user>/adb` Does _not_ support other bash-isms, like `~name` or `~1`. - Replace leading `./` with primary workspace directory. `./adb` → `<workspace>/adb` - Substitute `$VAR` with environment variables. `$HOME/adb` → `/Users/<user>/adb` - Resolve `..` directory traversal. `../tools/adb` → `<workspace>/../adb`
|
Great, thank you! I've rebased the PR and fixed all lint issues. 😊 btw I recommend adding // .prettierrc.json
{
"trailingComma": "none",
"tabWidth": 4,
"singleQuote": false
}(FWIW I would recommend switching to Your As a matter of fact, the Also, the current I recommend deleting all This README has more details: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/src/configs#readme And if you do want to use Depending on your preferences, instead of running In case you're not sure how to "correctly" configure |
|
Thank you! Do you want me to release a new version with your changes right away or is there anything else you want to change? (Btw I'm still fond of the 4 spaces indentation - Just my personal preference 😜) Regarding the eslint configuration - Yeah it's a complete mess. I decided to give And thank you for your offer but I really don't want to bother you with with boring tasks like cleaning up the linter configuration when I'm just too lazy to do it myself... But I promise that I will do better and clean it up soon! 🙏 |
In some setups, the
adbmay not be in the$PATH, but be located relative to the workspace directory or accessible via some other environment$VAR. This is currently not supported via theadbPathconfiguration.This PR adds support for primitive Bash-like path / variable expansion for
adbPath.~/adb→/Users/<user>/adbReplace leading
~/with user home directory. Does not support other Bash-isms, like~nameor~1../adb→<workspace>/adbReplace leading
./with primary workspace directory.$HOME/adb→/Users/<user>/adbSubstitute
$VARwith environment variables.../tools/adb→<workspace>/../adbResolve
..directory traversal.Thanks your your great extension!