Commit Graph

23 Commits

Author SHA1 Message Date
Shohei YOSHIDA 73505e4768 Don't use sed gnu extension, use POSIX syntax 2020-05-09 19:22:56 +09:00
Shohei YOSHIDA fd64c85cf7 Fix run subcommand --cwd issue
opt_args cannot be read from 2nd completion
2020-05-09 16:48:48 +09:00
Shohei YOSHIDA 1a420d3839 Update subcommand flags 2020-05-09 14:57:49 +09:00
Shohei YOSHIDA 44e1c1ed9c Improve completion when '--cwd' is specified 2020-05-09 14:28:04 +09:00
Shohei YOSHIDA 4601310ac2 Update subcommand completion 2020-05-09 10:08:03 +09:00
Shohei YOSHIDA 195bdb40c7 Set description for all options 2020-05-08 08:42:05 +09:00
Shohei YOSHIDA 4817a6afba Update yarn command line options 2020-05-08 07:48:34 +09:00
Dimitris Apostolou 9e9bee7066
Fix typos 2020-04-09 11:51:09 +03:00
Shohei YOSHIDA 78d8744642 Complete local file 'yarn add'
Complete local file if 'file:' or 'link:' is specified
2020-03-25 00:05:14 +09:00
Maxim Devoir 493984e7f1
Yarn | cross-platform sed replacement pattern newline solution (#666)
Some sed utilities (e.g. Mac OS / BSD) don't interpret `\n` in a replacement pattern as a newline.
2020-01-17 13:22:00 -08:00
Marc Cornellà e32536a208 _yarn: fix parsing of yarn run on scripts containing } (#668)
Fixes #667
2020-01-17 12:54:37 -08:00
nicoulaj 87e131334f
Merge pull request #653 from MaximDevoir/feat/improve-yarn-suggestions
YARN | Improve suggestions for `yarn run` command
2019-10-08 18:54:55 +02:00
Maxim Devoir c9b335769c
revert: suggest binaries on `yarn`
This behavior is the same as before c6bdbc69e1
2019-10-07 12:14:10 -07:00
Bond 21aa84dba2
Add --latest flag for yarn upgrade-interactive 2019-10-03 05:05:46 +01:00
Marc Cornellà a47b58ef97
Parse script commands without `jq`
Source from https://github.com/robbyrussell/oh-my-zsh/pull/8118#issuecomment-537484017
2019-10-02 07:42:15 -07:00
Maxim Devoir c6bdbc69e1
Separate project scripts from binary packages
If `jq` utility is installed:

- Suggests script names from `package.json` and their associated script

Following [this feedback](https://github.com/robbyrussell/oh-my-zsh/pull/8118#issuecomment-537148142), binaries will always be suggested.
2019-10-02 02:47:13 -07:00
Jordan Rastrick 4add7f4dfb
Improve _yarn changes
Use `_default` instead of `_files` and don't unnecessarily wrap with `_arguments`
2019-10-01 12:50:37 +10:00
Jordan Rastrick 1000d2ea8b
fall back to file completion for yarn scripts 2019-09-26 16:59:14 +10:00
Serge Bibauw ff73f4064f
yarn: rename clean to autoclean, add description for certain commands
- `clean` has been renamed to `autoclean` (https://github.com/yarnpkg/rfcs/pull/52)
- added description (from `yarn help [command]`) to `cache`, `import` and `versions`
2018-05-02 15:22:48 +02:00
Simon Wachter 155c2a9939
yarn: escape colons when getting scripts from package.json 2017-11-06 13:33:30 +01:00
Chayoung You aa4c6d0abc
Replace character with newline using `tr`
BSD sed don't print newline for `\n` in replacement string.
2017-06-09 18:03:41 +09:00
Akinori MUSHA 32b4770dab Use `sed -E` instead of `-r`
`-E` is more widely supported, including GNU sed.

- [GNU sed](https://www.gnu.org/software/sed/manual/sed.html)
- [macOS](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/sed.1.html)
- [FreeBSD](https://man.freebsd.org/sed/)
- [NetBSD](http://netbsd.gw.com/cgi-bin/man-cgi?sed)
- [OpenBSD](http://man.openbsd.org/sed.1)
2017-05-15 17:40:15 +09:00
Massimiliano Torromeo 9feab3990c Added completion for yarn 2017-05-06 19:52:10 +02:00