protected void activate()

in src/main/java/org/apache/sling/cli/impl/ExecutionTrigger.java [30:36]


    protected void activate(BundleContext ctx) {
        ctx.addFrameworkListener(evt -> {
            if (evt.getType() == FrameworkEvent.STARTED)
                new Thread(() -> processor.runCommand(), getClass().getSimpleName() + "Thread").start();
        });
        // never removed but not important - it's one-shot anyway
    }