A combo Spring Shell and Spring CommandLineRunner (ApplicationRunner)
This project aims to be a sample to easily start a Spring Shell CLI that can be run both in interactive mode and directly from command line (Base on Spring Application Runner).
The produced shell-cli is also aim to be install to easily be used as linux command line.
- Create install folder
sudo mkdir /var/shell-cli
sudo cp target/shell-cli-1.0.0.jar /var/shell-cli/shell-cli.jar- Create symbolic link
sudo ln -s /var/shell-cli/shell-cli.jar /bin/shell-cli- Make it executable
sudo sudo chmod +x /bin/shell-cli- Test it
shell-cli help