Class SpartaCli

java.lang.Object
be.kuleuven.cs.distrinet.sparta.cli.SpartaCli
All Implemented Interfaces:
Callable<Integer>

public class SpartaCli extends Object implements Callable<Integer>
SPARTA command line application. This is the main entry point for running SPARTA from the command line: it declares the supported options (picocli), validates the input, runs the threat analysis via the shared StandaloneRuntime and hands the results to the requested Exporter steps.

Exit codes: 0 on success, 1 when the analysis or an export/submission fails, 2 on a usage or input error (unknown option, missing input model, ...).

  • Constructor Details

    • SpartaCli

      public SpartaCli()
  • Method Details

    • main

      public static void main(String[] args)
      Parameters:
      args - command line arguments
    • call

      public Integer call()
      Specified by:
      call in interface Callable<Integer>