Unverified Commit e33bc403 authored by Julien Negrotto's avatar Julien Negrotto Committed by Marc Cornellà

feat(rake): support square brackets with rake binstub (#5361)

Closes #5361
parent b8e4aa2b
...@@ -13,20 +13,24 @@ plugins=(... rake) ...@@ -13,20 +13,24 @@ plugins=(... rake)
The plugin aliases the rake command so you can pass arguments when invoking rake tasks The plugin aliases the rake command so you can pass arguments when invoking rake tasks
without having to escape the brackets, i.e., you can run without having to escape the brackets, i.e., you can run
```
```sh
rake namespace:task['argument'] rake namespace:task['argument']
``` ```
instead of having to do instead of having to do
```
```sh
rake namespace:task\['argument'\] rake namespace:task\['argument'\]
``` ```
| Alias | Command | Description | | Alias | Command | Description |
|--------|--------------------------------|-----------------------------------------------| | ---------- | ------------------------------ | --------------------------------------------- |
| rake | `noglob rake` | Allows unescaped square brackets | | `rake` | `noglob rake` | Allows unescaped square brackets |
| brake | `noglob bundle exec rake` | Same as above but call rake using bundler | | `bin/rake` | `noglob bin/rake` | Same as above but using rake binstub |
| srake | `noglob sudo rake` | Same as rake but using sudo | | `brake` | `noglob bundle exec rake` | Same as above but call rake using bundler |
| sbrake | `noglob sudo bundle exec rake` | Same as above but using both sudo and bundler | | `srake` | `noglob sudo rake` | Same as rake but using sudo |
| `sbrake` | `noglob sudo bundle exec rake` | Same as above but using both sudo and bundler |
## Jim Weirich ## Jim Weirich
......
# Thank you Jim for everything you contributed to the Ruby and open source community # Thank you Jim for everything you contributed to the Ruby and open source community
# over the years. We will miss you dearly. # over the years. We will miss you dearly.
alias jimweirich="rake" alias jimweirich='rake'
alias rake="noglob rake" # allows square brackets for rake task invocation alias rake='noglob rake' # allows square brackts for rake task invocation
alias 'bin/rake'='noglob bin/rake' # support use of binstub
alias brake='noglob bundle exec rake' # execute the bundled rake gem alias brake='noglob bundle exec rake' # execute the bundled rake gem
alias srake='noglob sudo rake' # noglob must come before sudo alias srake='noglob sudo rake' # noglob must come before sudo
alias sbrake='noglob sudo bundle exec rake' # altogether now ... alias sbrake='noglob sudo bundle exec rake' # altogether now ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment