public string CreateQuery() { var sf = string.Format("{0} {1} {2} ", SelectCommand.TrimStart(), FromCommand.TrimStart(), WhereCommand); return(sf); }
public CurrentBuild(FromCommand fromCommand, Dictionary <string, string> buildArgs, List <CommandBase> commands) { FromCommand = fromCommand; BuildArgs = buildArgs; Commands = commands; }
public void FromWithAliasShallRenderUsingAS() { var from = new FromCommand("mcr.microsoft.com/dotnet/sdk:5.0", "net5.0"); Assert.AreEqual("FROM mcr.microsoft.com/dotnet/sdk:5.0 AS net5.0", from.ToString()); }
public DockerfileBuild(FromCommand fromCommand, IEnumerable <CommandBase> commands) { FromCommand = fromCommand; Commands = commands.ToList().AsReadOnly(); }