public static void NpmAddUser(this ICakeContext context, NpmAddUserSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } AddinInformation.LogVersionInformation(context.Log); var addUser = new NpmAddUser(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); addUser.AddUser(settings); }
protected override void RunTool() { var tool = new NpmAddUser(FileSystem, Environment, ProcessRunner, Tools, Log); tool.AddUser(Settings); }