Ejemplo n.º 1
0
        public static int Run()
        {
#if !UNIVERSAL
            EngineInternal.Initialize();
#endif
            var command = new CommandLine(Environment.CommandLine);

            var args = new ProcessCommandLineArgs
            {
                Command  = command,
                Handlers = GetHandlers().ToList(),
            };
            foreach (var handler in args.Handlers)
            {
                if (handler.Process(args))
                {
                    return(0);
                }
            }
            return(-1);
        }
Ejemplo n.º 2
0
 public string DetectFormat(string fileName)
 {
     return(EngineInternal.DetectFormat(fileName));
 }
Ejemplo n.º 3
0
 public PabloEngine(string platform = null, string defaultWindowsPlatform = "win")
 {
     EngineInternal.Initialize(platform, defaultWindowsPlatform);
 }
Ejemplo n.º 4
0
 public bool SupportsFile(InputParameters parameters)
 {
     return(EngineInternal.SupportsFile(parameters));
 }
Ejemplo n.º 5
0
 public FileInfo GetInfo(InputParameters parameters)
 {
     return(EngineInternal.GetInfo(parameters));
 }
Ejemplo n.º 6
0
 public void Convert(ConvertParameters parameters)
 {
     EngineInternal.Convert(parameters);
 }
Ejemplo n.º 7
0
 public string DetectType(string fileName)
 {
     return(EngineInternal.DetectType(fileName));
 }