class Fluorite::DSL::Command

Defined in:

fluorite/dsl/command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Instance Method Detail

def add_input(input : Input) : self #

def add_output(output : Output) : self #

def estimate_duration : Time::Span | Nil #

Attempts to determine duration of first input for progress percentage


def filter_graph : FilterGraph #

def global_option(flag : String, value : String | Nil = nil) : self #

def global_options : Array(String) #

def hwaccel(accel : String | Symbol) : self #

def hwaccel_mode : String | Nil #

def hwaccel_mode=(hwaccel_mode : String | Nil) #

def inputs : Array(Input) #

def no_overwrite! : self #

def outputs : Array(Output) #

def overwrite! : self #

def overwrite_mode : Bool #

def overwrite_mode=(overwrite_mode : Bool) #

def run(&block : Runner::Progress -> Nil) : Process::Status #

Runs command synchronously with optional progress block


def run : Process::Status #

def run_async : Runner::ProcessRunner #

Runs command asynchronously returning the ProcessRunner


def threads(n : Int32) : self #

def threads_count : Int32 | Nil #

def threads_count=(threads_count : Int32 | Nil) #

def to_args : Array(String) #

Assembles arguments into array for process execution


def to_cmd_string : String #