All Downloads are FREE. Search and download functionalities are using the official Maven repository.

smolok.cmd.Cmd.groovy Maven / Gradle / Ivy

There is a newer version: 0.0.11
Show newest version
package smolok.cmd

import org.springframework.context.ConfigurableApplicationContext
import smolok.bootstrap.Smolok

/**
 * Main class for Smolok command line.
 */
class Cmd extends Smolok {

    @Override
    ConfigurableApplicationContext run(String... command) {
        def context = super.run(command)
        log.debug('About to run command: {}', command.toList())
        context.getBean(CommandDispatcher.class).handleCommand(command)
        context
    }

    public static void main(String... args) {
        new Cmd().run(args).close()
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy