mirror of
https://github.com/servo/servo.git
synced 2025-08-01 11:40:30 +01:00
Auto merge of #5771 - Manishearth:cargo-update, r=jdm
<!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5771) <!-- Reviewable:end -->
This commit is contained in:
commit
3c4ca28a65
1 changed files with 9 additions and 0 deletions
|
@ -31,6 +31,15 @@ class MachCommands(CommandBase):
|
||||||
return subprocess.call(['cargo'] + params,
|
return subprocess.call(['cargo'] + params,
|
||||||
env=self.build_env())
|
env=self.build_env())
|
||||||
|
|
||||||
|
@Command('cargo-update',
|
||||||
|
description='Same as update-cargo',
|
||||||
|
category='devenv')
|
||||||
|
@CommandArgument(
|
||||||
|
'params', default=None, nargs='...',
|
||||||
|
help='Command-line arguments to be passed through to cargo update')
|
||||||
|
def cargo_update(self, params=None):
|
||||||
|
self.update_cargo(params)
|
||||||
|
|
||||||
@Command('update-cargo',
|
@Command('update-cargo',
|
||||||
description='Update Cargo dependencies',
|
description='Update Cargo dependencies',
|
||||||
category='devenv')
|
category='devenv')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue