com.g2forge.enigma.bash.model.statement.BashBlock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of en-bash Show documentation
Show all versions of en-bash Show documentation
Model & renderer for bash scripts. Yes, it can properly and safely quote them too.
package com.g2forge.enigma.bash.model.statement;
import java.util.List;
import com.g2forge.alexandria.java.core.helpers.HCollection;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.Singular;
@Data
@Builder(toBuilder = true)
@RequiredArgsConstructor
public class BashBlock implements IBashBlock {
@Singular
protected final List contents;
public BashBlock(IBashBlock... contents) {
this(HCollection.asList(contents));
}
}