/// <summary> /// Initializes a new instance of the <see cref="TfxExtensionShareArgumentBuilder"/> class. /// </summary> /// <param name="environment">The environment.</param> /// <param name="vsixFilePath">The FilePath to the VSIX.</param> /// <param name="shareWith">The accounts to share the extension to.</param> /// <param name="settings">The settings.</param> public TfxExtensionShareArgumentBuilder(ICakeEnvironment environment, FilePath vsixFilePath, ICollection <string> shareWith, TfxExtensionShareSettings settings) { _environment = environment; _vsixFilePath = vsixFilePath; _shareWith = shareWith; _settings = settings; }
public static void TfxExtensionShare(this ICakeContext context, FilePath vsixFilePath, ICollection <string> shareWith, TfxExtensionShareSettings settings) { var runner = new TfxExtensionShareRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); runner.Share(vsixFilePath, shareWith, settings); }