public static void LibManUninstall(this ICakeContext context, LibManUninstallSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } LibManAddinInformation.LogVersionInformation(context.Log); var uninstaller = new LibManUninstaller(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); uninstaller.Uninstall(settings); }
public static void LibManCacheClean(this ICakeContext context, LibManCacheCleanSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } LibManAddinInformation.LogVersionInformation(context.Log); var tool = new LibManCacheCleanTool(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); tool.CacheClean(settings); }