All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.g2forge.enigma.bash.model.statement.BashCommand Maven / Gradle / Ivy

Go to download

Model & renderer for bash scripts. Yes, it can properly and safely quote them too.

There is a newer version: 0.0.11
Show newest version
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 BashCommand implements IBashExecutable {
	@Singular
	protected final List tokens;

	public BashCommand(Object... tokens) {
		this(HCollection.asList(tokens));
	}
}