Commit Graph

110 Commits

Author SHA1 Message Date
mpollack
388c04b10a SHL-113 Allow for there two be options with two empty keys
Looking for a better solution, but work well for the more common case
of having default options that correspond to an empty string value,
CliOption(key = { "", "command" }
2014-04-13 21:57:24 -04:00
mpollack
497f60533e SHL-133 Shell command "! ls /tmp" fails 2014-04-11 23:43:13 -04:00
mpollack
942d01a630 Merge branch 'SHL-113' of https://github.com/ericbottard/spring-shell into ericbottard-SHL-113 2014-04-02 17:32:28 -04:00
mpollack
ac5618df2e SHL-80 Disable built in commands
Chain constructor to avoid a breaking API change
2014-04-02 12:02:38 -04:00
Eric Bottard
78082e25c7 SHL-113: Don't report ambiguity on an exact match 2014-04-02 16:33:09 +02:00
mpollack
6de9c8b1ae SHL-91 SHL-80 Provide ability to disable built-in commands 2014-04-02 02:01:26 -04:00
mpollack
b2a004398c SHL-107 - Prompt not re-evaluated if the user input is just an enter command
Thanks to the PR 7bf8be15bf8f7082e022a990680da7c818f572cf for the fix
2014-04-02 00:45:46 -04:00
mpollack
65c02b778b SHL-126 - Add utility classes for rendering ascii based tables 2014-04-01 23:50:55 -04:00
Eric Bottard
8d13a494a5 Do not handle '!' in any special way 2014-03-25 15:18:15 +01:00
Eric Bottard
43a634f0b8 SHL-122: Fix value-less options not at end 2014-02-28 16:48:05 +01:00
Eric Bottard
74a0c49699 Don't crash shell in completions if an option has been set twice 2014-02-26 14:35:46 +01:00
Eric Bottard
e5adb8bc06 Add tests for completion continuation 2014-02-17 16:57:25 +01:00
Eric Bottard
d11cae8ab2 Handle quotes escaping in completions 2014-02-17 16:25:43 +01:00
Eric Bottard
0ca3be8ca2 Add failing tests 2014-02-10 17:49:21 +01:00
Eric Bottard
ecb747f849 Add more assertions to tokenizer 2014-02-10 17:49:20 +01:00
Eric Bottard
7d8d9b2fde Refactor + only present not yet provided options 2014-02-10 17:49:20 +01:00
Eric Bottard
3b1c3e273d Add tests and fix completion corner cases 2014-02-10 17:49:20 +01:00
Pid
fbd1a7153d SHL-120 - Add @Inherited and @Documented to the annotations.
Adding @Inherited will permit command properties to be defined on an interface that extends CommandMarker, separating the declarative configuration and implementation, making it easier to read.
2014-01-30 19:09:45 -05:00
Eric Bottard
ac97044e46 SHL-116: Rewrote tokenizer to allow quotes escaping
* Allow unmatched quotes if at the end 30e34da977289ed52221ae0b4e9f5eabdf392a60
* Allow trailing key without an option b6814870a28f5a4bc9509556a847acec5db10523
* Allow completions in unmatched quotes f93bbc7d44461595eb299797a36bd10bc23b83f9
* Fix case where parser would think it is  at end but in quotes is intended for it (as a option marker) a2a710463761668c67810448bd6803ce67bba35e
* Fix corner case of empty quoted string 4fdcfbf2e2cbbee9a7a624735be81ed98fc67ed6
* Handle dangling dash dash at the end 40dd0bbc867b45c8cb8c37a82d5afe93ccbcb960
* Add author tag 9e3a6e0c0964d39e51f6496c97bfdf74c153bd9d
2014-01-30 18:43:18 -05:00
Eric Bottard
27399c3381 SHL-116: Rewrote tokenizer to allow quotes escaping 2014-01-30 18:37:24 -05:00
mpollack
0bbfd4aaad Guard cast of MemoryHistory 2014-01-30 18:24:55 -05:00
mpollack
08357d2c28 Close ReversedLinesFileReader 2014-01-30 18:18:07 -05:00
mpollack
7123eae85a SHL-119 Remove unused bright color constants 2014-01-30 18:06:53 -05:00
mpollack
2cd832858d SHL-118 - Rename JLineCompletorAdapter to ParserCompleter 2014-01-30 18:03:39 -05:00
Eric Bottard
296e4d2ff0 SHL-74: Upgrade to JLine 2 2013-12-11 18:45:47 +01:00
mpollack
87fc2cb862 SHL-104 - Remove compiler warnings
Thanks Hu Xi - 890b41bb04
2013-07-25 19:46:25 -04:00
mpollack
344385116c SHL-69 - Extract "version" command from AbstractShell 2013-07-25 19:38:00 -04:00
mpollack
e9f3de10cb SHL92 - Decoupling the script command from AbstractShell
Thanks to trumpetx
c0abfa0454
2013-07-25 19:11:46 -04:00
mpollack
612da3bda1 SHL-82 Improve detection of apple terminal
Remove AbstractShellTest as it didn't test anything other than calling for system properties
Fix failing tests
2013-07-25 18:33:15 -04:00
mpollack
42328fb890 SHL-68 - Make help for built-in commands consistent 2013-07-25 18:11:17 -04:00
mpollack
201abafb15 SHL-69 - Remove docs for "version" command that is not available 2013-07-25 18:07:48 -04:00
mpollack
d03c4b97a2 SHL-70 Add a command to clear the console
Move some of the built-in commands out of AbstractShell so they can more easily be excluded via filters in classpath scanning
2013-07-25 17:57:27 -04:00
mpollack
f7afbca250 Remove FINE logging of what NamedProviders are being used
Add JUnit to sample build files
2013-07-25 17:37:51 -04:00
mpollack
330735902b SHL-103 Create simple way to test the execution of shell commands. Add missing files from previous commit 2013-07-23 15:10:56 -04:00
mpollack
209fc84a70 SHL-103 Create simple way to test the execution of shell commands 2013-07-23 12:00:29 -04:00
mpollack
4f885ca2ee Add author tag for David Winterfeldt 2013-07-23 03:04:32 -04:00
mpollack
c37f0fdae8 SHL-100,101,102 2013-07-23 03:00:44 -04:00
mpollack
c22bad1e6a Change how JLineShellComponent is access in Bootstrap class 2012-12-20 05:49:37 +08:00
mpollack
730e33d6ff SHL-66 - Plugins should have access to command line options 2012-12-20 05:41:45 +08:00
mpollack
ecf06a70ee SHL-86 - Change bootstrapping procedure so JLineShellComponent can resolve its own dependencies. 2012-12-19 07:50:57 +08:00
mpollack
7e429fc437 SHL-78 - Add an if check in JLineShellComponent's stop method. 2012-11-15 17:43:04 -05:00
Mark Pollack
ea25910fce SHL-61 - Remove unused Hint classes 2012-09-19 14:27:35 -04:00
Mark Pollack
e2e9f965ac SHL-60 - Jansi terminal support not working under cygwin 2012-09-19 11:58:10 -04:00
Erwin Vervaet
8620061363 Removed duplicate code from Spring and Roo 2012-09-19 10:01:55 -04:00
Jarred Li
7acc0db4de resolve issue: java.lang.IllegalStateException: Shutdown in progress 2012-08-14 15:48:42 +08:00
Jarred Li
0f5a0fc85c remove JVM shutdown hook 2012-08-14 13:53:27 +08:00
Costin Leau
297c60f5ab prompt text is read after each command exec
allows the prompt to be changed in dynamic envs
2012-07-29 19:50:30 +03:00
Costin Leau
fc12a15bbf banners can now be read from files
allows externalization in a platform-neutral way,
of banners making banner provider less complicated
2012-07-24 13:08:07 +03:00
Costin Leau
8b3ed45ea0 add missing resource 2012-07-18 18:14:07 +03:00
Costin Leau
ae202d2898 remove unneeded resources 2012-07-18 17:19:43 +03:00