using FileFlows.Plugin;
namespace FileFlows.BasicNodes.SystemElements;
///
/// A flow to determine if this is running on Linux or not
///
public class IsLinux : Node
{
///
public override int Inputs => 1;
///
public override int Outputs => 2;
///
public override FlowElementType Type => FlowElementType.Logic;
///
public override string Group => "System";
///
public override string Icon => "fab fa-linux";
///
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/system/is-linux";
///
public override string CustomColor => "#2481e4";
///
public override int Execute(NodeParameters args)
=> args.IsDocker == false && OperatingSystem.IsLinux() ? 1 : 2;
}