-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #308 from belligerentbeagle/246-dg-command-history…
…-retrieval-implementation Improve Command History implementation
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
|
||
|
||
:Input field is empty; | ||
|
||
if () then ([up or down arrow key pressed]) | ||
:Retrieves previousCommand | ||
from CommandHistory | ||
if available; | ||
note | ||
previousCommand is a generic variable | ||
representing a command from CommandHistory. | ||
Therefore it can contain an older or nere | ||
command depending on the current command | ||
end note | ||
:previousCommand fills Input field; | ||
else ([else]) | ||
:User enters command in Input field; | ||
endif | ||
:User executes command; | ||
:Command saved in CommandHistory; | ||
:Input field is cleared; | ||
|
||
stop | ||
@enduml |