Commit Graph

365 Commits

Author SHA1 Message Date
Eric Bottard
e38205b2b2 Add ASCII Table support
Fixes #136
2017-08-28 19:00:36 +02:00
Eric Bottard
dfa1a778a5 More reference documentation 2017-08-28 15:32:37 +02:00
Eric Bottard
6f79cc2686 Fix completion 2017-08-28 15:09:20 +02:00
Eric Bottard
be1603214d More reference documentation 2017-08-25 18:16:09 +02:00
Eric Bottard
56adc9ab5a Write tutorial in ref doc 2017-08-23 21:09:40 +02:00
Eric Bottard
a191d113a4 Add history file support.
Fixes #134
2017-08-23 18:46:09 +02:00
Eric Bottard
1eea04ad2f Add dynamic command availability
Introduce availability concept on MethodTarget (with reason if not available)
Add bridge to @CliAvailabilityIndicator to Legacy registrar

Fixes #138

Add help for unavailable commands

Add standard API for availability
2017-08-23 18:44:31 +02:00
camilojc
6c231a072c Order ParameterResolvers. Validate there is at least one per parameter 2017-08-18 16:19:31 +02:00
Eric Bottard
51c043e1e1 Remove extra directory in docs zip 2017-08-18 14:00:33 +02:00
Eric Bottard
3fb368476f Add Reference Documentation infrastructure 2017-08-17 12:22:52 +02:00
Eric Bottard
ff3153c419 Add script command.
Also: prepare for execute-then-quit.
Add javadocs
2017-08-11 17:28:30 +02:00
Eric Bottard
39ec7d36c1 Uncamelify method names as documented 2017-08-10 15:39:37 +02:00
Eric Bottard
136ab89678 Rework prefix handling 2017-08-10 15:34:38 +02:00
Eric Bottard
cc37bb013b Document constants in @ShellOption 2017-08-10 13:49:28 +02:00
Eric Bottard
a4ff679e76 Add javadoc and sources generation 2017-08-10 12:19:32 +02:00
Eric Bottard
8753aa96b1 Allow not to build samples 2017-08-10 11:21:00 +02:00
Eric Bottard
5b07a1a89c Rename ShellMethod.help() to value(), as it is the only mandatory attribute. 2017-08-10 11:13:13 +02:00
Eric Bottard
78f69d51e2 Fix build 2017-08-10 10:34:38 +02:00
Eric Bottard
ca5ace72b7 Add missing file following last commit 2017-08-09 17:58:58 +02:00
Eric Bottard
a7d9ababa0 Move InputProvider to top-level 2017-08-09 17:43:46 +02:00
Eric Bottard
885e22ea0f Add support for comments, prepare for "script" and execute-then-quit 2017-08-09 16:58:11 +02:00
Eric Bottard
7efb3cd049 Add more context when failing to construct a MethodTarget 2017-08-09 15:48:49 +02:00
camilojc
4ff91f3583 add .gitattributes to force *.txt files to use eol=lf at checkout 2017-08-08 23:10:23 +01:00
Eric Bottard
c98642c2f7 Add starter, make adapter kick in only if needed 2017-08-08 17:18:20 +02:00
Eric Bottard
c3c7f1fccd Add PromptProvider extension point 2017-08-08 16:07:12 +02:00
Eric Bottard
75911b5fed Add some docs 2017-08-08 11:52:32 +02:00
Eric Bottard
0ca3dacdce Allow overrides of standard commands 2017-08-08 11:52:32 +02:00
Eric Bottard
c8e4752119 Prevent double registration of commands 2017-08-08 11:52:32 +02:00
Eric Bottard
6497df181d Refactor packages and artifactIds to prepare for official migration to spring-projects repo.
Remove usage of component scan in favor of auto-conf

Fixes #61
2017-08-08 11:52:32 +02:00
camilojc
5fd1f716d9 Changed return value of ParameterResolver::resolve to use a ValueResult that contains metadata about the value that was resolved
Added new ValueResultAsserts to facilitate testing of ParameterResolvers
2017-08-08 11:52:32 +02:00
Eric Bottard
bf10f679ec Add completion for JCommander 2017-08-08 11:52:32 +02:00
Eric Bottard
a277c53d8d Implement describe() for JCommander 2017-08-08 11:52:32 +02:00
Eric Bottard
e49ee885ef Use JCommander resolver in combination with others.
Prepare for implementation of describe()
2017-08-08 11:52:32 +02:00
Eric Bottard
14b2401374 Reconsider how input buffer is tokenized
Fixes #85
2017-08-08 11:52:32 +02:00
camilojc
7fd5390c29 Remove uses of "--" as constant prefix
Code now uses the prefixForMethod(...)
added sample usage of prefix in a @ShellMethod
2017-08-08 11:52:32 +02:00
Eric Bottard
8398b140ae Add JLine JNA for Windows shells 2017-08-08 11:52:32 +02:00
Eric Bottard
fb7b8262d4 Allow printing of the full stacktrace after an error
Fixes #70
2017-08-08 11:52:32 +02:00
Eric Bottard
ecd27de09a Fix implied boolean arity, even if annotation is used
Fixes #83
2017-08-08 11:52:32 +02:00
Eric Bottard
33c1474216 Small code cleanup 2017-08-08 11:52:32 +02:00
Eric Bottard
85a57018e8 Fix completion logic to only see words pertaining to args 2017-08-08 11:52:32 +02:00
Eric Bottard
109094c48c Don't escape/quote command names in completion proposals
Fixes #76
2017-08-08 11:52:32 +02:00
Eric Bottard
30b49ef501 Trim input buffer for command lookup
Fixes #79
2017-08-08 11:52:32 +02:00
Eric Bottard
bc81d3ed9c Use delegation rather than inheritance to decouple JLine
Fixes #78
2017-08-08 11:52:32 +02:00
Eric Bottard
50ba8de8b4 Decouple main REPL from JLine
Fixes #66
2017-08-08 11:52:32 +02:00
Eric Bottard
e4e66369ad Properly escape or quote values when doing completion
Fixes #54
2017-08-08 11:52:31 +02:00
Eric Bottard
15ed6ed0c0 Remove dependencies from parent pom
Fixes #44
2017-08-08 11:52:31 +02:00
Eric Bottard
ec83869c9f Introduce -standard and -standard-commands artifacts
Fixes #43
2017-08-08 11:52:31 +02:00
Eric Bottard
5a2658b0e4 Add some toString() implementations 2017-08-08 11:52:31 +02:00
Eric Bottard
65647ab3e0 Support line continuation
- either by ending a line with backslash and hitting return
- or but hitting return while inside quotes

Fixes #23
2017-08-08 11:52:31 +02:00
camilojc
f41b14f118 Updated the AttributedCharSequenceResultHandler to use the Terminal::writer instead of the System.out directly.
Fixes #59
2017-08-08 11:52:31 +02:00