dmadunic / clidemo Goto Github PK
View Code? Open in Web Editor NEWSample SpringShell CLI demo
License: GNU General Public License v3.0
Sample SpringShell CLI demo
License: GNU General Public License v3.0
I have following text in the default and Japanese properties file.
messages.properties
start.notes=Enter to Initialize.
messages_ja.properties
start.notes=を入力して初期化します。
And we using shellHelper.print method to show the message on the windows command prompt. It is working fine with the english message but when the locale is Japanese some junk chars are being visible on the command prompt instead of above shown japanese text.
Hi dmadunic, thanks for you project share. I have a problem if you can help.
If I create a new Command that autowired InputReader, I got this error below:
The dependencies of some of the beans in the application context form a cycle:
testCommand (field com.yiwu.command.shell.InputReader com.yiwu.command.commands.TestCommand.inputReader)
┌─────┐
| inputReader defined in class path resource [com/yiwu/command/config/SpringShellConfig.class]
↑ ↓
| org.springframework.shell.jline.JLineShellAutoConfiguration (field private org.springframework.shell.Shell org.springframework.shell.jline.JLineShellAutoConfiguration.shell)
↑ ↓
| shell
↑ ↓
| userCommand (field com.yiwu.command.shell.InputReader com.yiwu.command.commands.UserCommand.inputReader)
``
cat TestCommand
@ShellComponent
public class TestCommand {
@Autowired
ShellHelper shellHelper;
@Autowired
InputReader inputReader;
@Autowired
ProgressBar progressBar;
@Autowired
ProgressCounter progressCounter;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.