Nuke.Cola
Loading...
Searching...
No Matches
PythonTasks.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Threading.Tasks;
5using Nuke.Common;
6using Nuke.Common.Tooling;
7
8namespace Nuke.Cola.Tooling;
9
10public class PythonTasks
11{
12 public static ValueOrError<ToolEx> EnsurePython => ToolCola.Use("py");
13 public static ToolEx Python => EnsurePython.Get();
14
15 public static ValueOrError<ToolEx> EnsurePip => ToolCola.Use("pip");
16 public static ToolEx Pip => EnsurePip.Get();
17}
static ValueOrError< ToolEx > Use(string tool, Action? setup=null)
Get a tool which should be in PATH, and provide an optional way to set it up automatically if it wasn...
delegate? IReadOnlyCollection< Output > ToolEx(ArgumentStringHandlerEx arguments=default, string? workingDirectory=null, IReadOnlyDictionary< string, string >? environmentVariables=null, int? timeout=null, bool? logOutput=null, bool? logInvocation=null, Action< OutputType, string >? logger=null, Action< IProcess >? exitHandler=null, Action< StreamWriter >? input=null, Encoding? standardOutputEncoding=null, Encoding? standardInputEncoding=null, ToolExRetry? retry=null)
Extended copy of Tool delegate of Nuke.