/// <summary> /// execute 'bower install' for a particular package /// </summary> /// <param name="package">endpoint/package to install when using 'bower install'</param> /// <param name="configure">options when running 'bower install'</param> /// <example> /// <para>Run 'bower install'</para> /// <code> /// <![CDATA[ /// Task("Bower") /// .Does(() => /// { /// Bower.Install("jquery")); /// }); /// ]]> /// </code> /// </example> public IBowerRunnerCommands Install(string package, Action<BowerInstallSettings> configure = null) { var settings = new BowerInstallSettings(); settings.WithPackage(package); configure?.Invoke(settings); return Run(settings); }
/// <summary> /// execute 'bower install' for a particular package /// </summary> /// <param name="package">endpoint/package to install when using 'bower install'</param> /// <param name="settings">options when running 'bower install'</param> /// <example> /// <para>Run 'bower install'</para> /// <code> /// <![CDATA[ /// Task("Bower") /// .Does(() => /// { /// var settings = new BowerInstallSettings(); /// settings.WithSave(); /// Bower.Install("jquery", settings)); /// }); /// ]]> /// </code> /// </example> public IBowerRunnerCommands Install(string package, BowerInstallSettings settings) { settings.WithPackage(package); return Run(settings); }