Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
f6bf32c3
Commit
f6bf32c3
authored
Oct 14, 2014
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option help to the CLI's install and uninstall commands
Closes gh-1704
parent
95d9cf76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
InstallCommand.java
...ingframework/boot/cli/command/install/InstallCommand.java
+12
-3
No files found.
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/InstallCommand.java
View file @
f6bf32c3
...
...
@@ -49,19 +49,28 @@ import org.springframework.util.SystemPropertyUtils;
*/
public
class
InstallCommand
extends
OptionParsingCommand
{
private
final
String
usageHelp
;
public
static
Command
install
()
{
return
new
InstallCommand
(
"install"
,
"Install dependencies to lib directory"
,
new
InstallFileProcessorFactory
());
"[options] <coordinates>"
,
new
InstallFileProcessorFactory
());
}
public
static
Command
uninstall
()
{
return
new
InstallCommand
(
"uninstall"
,
"Uninstall dependencies from
a lib directory
"
,
"Uninstall dependencies from
lib directory"
,
"[options] <coordinates>
"
,
new
UninstallFileProcessorFactory
());
}
private
InstallCommand
(
String
name
,
String
description
,
FileProcessorFactory
visitor
)
{
private
InstallCommand
(
String
name
,
String
description
,
String
usageHelp
,
FileProcessorFactory
visitor
)
{
super
(
name
,
description
,
new
InstallOptionHandler
(
visitor
));
this
.
usageHelp
=
usageHelp
;
}
@Override
public
String
getUsageHelp
()
{
return
this
.
usageHelp
;
}
private
static
final
class
InstallOptionHandler
extends
CompilerOptionHandler
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment