mirror of
https://github.com/servo/servo.git
synced 2025-06-23 00:24:35 +01:00
Alias cargo-update to update-cargo
This commit is contained in:
parent
fe61cdc95d
commit
f4f465d1b5
1 changed files with 9 additions and 0 deletions
|
@ -31,6 +31,15 @@ class MachCommands(CommandBase):
|
|||
return subprocess.call(['cargo'] + params,
|
||||
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',
|
||||
description='Update Cargo dependencies',
|
||||
category='devenv')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue