Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
24c487e2
"readme" did not exist on "beeaac353dedea71ea7bc6410a78b9b6c44e48c8"
Commit
24c487e2
authored
6 years ago
by
Ludovic Apvrille
Browse files
Options
Downloads
Patches
Plain Diff
Update on cli
parent
8181e656
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main/java/cli/Action.java
+4
-3
4 additions, 3 deletions
src/main/java/cli/Action.java
src/main/java/cli/Command.java
+1
-1
1 addition, 1 deletion
src/main/java/cli/Command.java
src/main/java/cli/Interpreter.java
+2
-0
2 additions, 0 deletions
src/main/java/cli/Interpreter.java
with
7 additions
and
4 deletions
src/main/java/cli/Action.java
+
4
−
3
View file @
24c487e2
...
...
@@ -50,15 +50,16 @@ import java.util.*;
* @author Ludovic APVRILLE
*/
public
class
Action
extends
Command
{
private
final
String
[]
SUB_COMMANDS
=
{
"open"
}
;
private
List
<
Command
>
subcommands
;
public
Action
()
{
subcommands
=
new
LinkedList
<
Command
>();
}
public
String
[]
getListOfSubCommands
()
{
return
SUB_COMMANDS
;
public
List
<
Command
>
getListOfSubCommands
()
{
return
subcommands
;
}
public
String
getCommand
()
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cli/Command.java
+
1
−
1
View file @
24c487e2
...
...
@@ -51,7 +51,7 @@ import java.util.*;
*/
public
abstract
class
Command
{
public
abstract
String
[]
getListOfSubCommands
();
public
abstract
List
<
Command
>
getListOfSubCommands
();
public
abstract
String
getCommand
();
public
abstract
String
getShortCommand
();
public
abstract
boolean
executeCommand
(
String
command
,
InterpreterOutputInterface
output
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cli/Interpreter.java
+
2
−
0
View file @
24c487e2
...
...
@@ -74,6 +74,8 @@ public class Interpreter {
private
final
static
String
OPEN
=
"open"
;
private
final
static
String
START
=
"start"
;
private
final
static
String
QUIT
=
"quit"
;
private
final
static
String
CHECKSYNTAX
=
"checksyntax"
;
// Errors
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment