feat(client): uninstallModule takes optional version param
Some checks failed
Security / Security check (push) Failing after 2s
Some checks failed
Security / Security check (push) Failing after 2s
Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
332d11af1d
commit
ed92f337b4
3 changed files with 27 additions and 3 deletions
|
|
@ -232,8 +232,13 @@ class HubClient {
|
|||
/// directory + re-scans the registry; writes a
|
||||
/// `module.uninstalled` audit event. Returned response carries
|
||||
/// the version that was removed.
|
||||
Future<UninstallModuleResponse> uninstallModule(String name) {
|
||||
return _admin.uninstallModule(pb.UninstallModuleRequest(name: name));
|
||||
Future<UninstallModuleResponse> uninstallModule(
|
||||
String name, {
|
||||
String version = '',
|
||||
}) {
|
||||
return _admin.uninstallModule(
|
||||
pb.UninstallModuleRequest(name: name, version: version),
|
||||
);
|
||||
}
|
||||
|
||||
/// Fetch a module's README markdown via the hub. The hub
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue