Skip to content

cuba-platform/cli-core

Repository files navigation

CLI Core

license

The CLI Core makes it easy to create a command line application that already works, right out of the box.

CLI Core features

  • User friendly command line interface.
  • Commands autocomplition.
  • Supports external plugins.
  • Command prompts DSL

CLI Core application development

CLI lib coordinates com.haulmont.cli.core:cli-core:1.0.0

Your application should have implementation for MainCliPlugin interface. And provide plugin implementation in module-info.java.

For example:

provides MainCliPlugin with YourPlugin;

To customize your application you can override MainCliPlugin methods:

  • welcome() - prints welcome message for interactive plugin mode
  • prompt - cli prompt for interactive mode
  • priority - main CLI plugin priority, plugin with highest priority will be used as main
  • pluginsDir - plugins folder path

For more details please check https://github.com/cuba-platform/cli-core-sample sample project.

About

The CLI Core makes it easy to create a command line applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published