-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement multi commands feature closes #61
- Loading branch information
1 parent
0d845b6
commit ae05a39
Showing
6 changed files
with
235 additions
and
8 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
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
137 changes: 137 additions & 0 deletions
137
tests/resources/expect/terminal_test_loop_multiple_commands.txt
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,137 @@ | ||
Host: host User: user | ||
================================================================================ | ||
Main Menu | ||
-------------------------------------------------------------------------------- | ||
[1] | Go to Sub Menu 1 | ||
[2] | Go to Sub Menu 2 | ||
[3] | Go to Menu 6 | ||
------+------------------------------------------------------------------------- | ||
[0] | Quit | ||
================================================================================ | ||
Press menu number (0-3): Host: host User: user | ||
================================================================================ | ||
Main Menu > Sub Menu 1 | ||
-------------------------------------------------------------------------------- | ||
[1] | Go to Menu 1 | ||
------+------------------------------------------------------------------------- | ||
[0] | Return to Main Menu | ||
================================================================================ | ||
Press menu number (0-1): Host: host User: user | ||
================================================================================ | ||
Confirmation | ||
-------------------------------------------------------------------------------- | ||
Would execute: Menu 1 | ||
================================================================================ | ||
Do you really want to execute? (y/n) [n]: Host: host User: user | ||
================================================================================ | ||
Executing: Menu 1 | ||
-------------------------------------------------------------------------------- | ||
1 | ||
2 | ||
-------------------------------------------------------------------------------- | ||
Return code: 0 | ||
================================================================================ | ||
Press any key to continue...Host: host User: user | ||
================================================================================ | ||
Main Menu > Sub Menu 1 | ||
-------------------------------------------------------------------------------- | ||
[1] | Go to Menu 1 | ||
------+------------------------------------------------------------------------- | ||
[0] | Return to Main Menu | ||
================================================================================ | ||
Press menu number (0-1): Host: host User: user | ||
================================================================================ | ||
Main Menu | ||
-------------------------------------------------------------------------------- | ||
[1] | Go to Sub Menu 1 | ||
[2] | Go to Sub Menu 2 | ||
[3] | Go to Menu 6 | ||
------+------------------------------------------------------------------------- | ||
[0] | Quit | ||
================================================================================ | ||
Press menu number (0-3): Host: host User: user | ||
================================================================================ | ||
Main Menu > Sub Menu 2 | ||
-------------------------------------------------------------------------------- | ||
[1] | Go to Sub Menu 3 | ||
[2] | Menu 5 | ||
------+------------------------------------------------------------------------- | ||
[0] | Return to Main Menu | ||
================================================================================ | ||
Press menu number (0-2): Host: host User: user | ||
================================================================================ | ||
Main Menu > Sub Menu 2 > Sub Menu 3 | ||
-------------------------------------------------------------------------------- | ||
[1] | Menu 3 | ||
[2] | Menu 4 | ||
------+------------------------------------------------------------------------- | ||
[0] | Return to Sub Menu 2 | ||
================================================================================ | ||
Press menu number (0-2): Host: host User: user | ||
================================================================================ | ||
Confirmation | ||
-------------------------------------------------------------------------------- | ||
Would execute: Menu 3 | ||
================================================================================ | ||
Do you really want to execute? (y/n) [n]: Host: host User: user | ||
================================================================================ | ||
Executing: Menu 3 | ||
-------------------------------------------------------------------------------- | ||
3 | ||
-------------------------------------------------------------------------------- | ||
Return code: 0 | ||
================================================================================ | ||
Press any key to continue...Host: host User: user | ||
================================================================================ | ||
Main Menu > Sub Menu 2 > Sub Menu 3 | ||
-------------------------------------------------------------------------------- | ||
[1] | Menu 3 | ||
[2] | Menu 4 | ||
------+------------------------------------------------------------------------- | ||
[0] | Return to Sub Menu 2 | ||
================================================================================ | ||
Press menu number (0-2): Host: host User: user | ||
================================================================================ | ||
Main Menu > Sub Menu 2 | ||
-------------------------------------------------------------------------------- | ||
[1] | Go to Sub Menu 3 | ||
[2] | Menu 5 | ||
------+------------------------------------------------------------------------- | ||
[0] | Return to Main Menu | ||
================================================================================ | ||
Press menu number (0-2): Host: host User: user | ||
================================================================================ | ||
Main Menu | ||
-------------------------------------------------------------------------------- | ||
[1] | Go to Sub Menu 1 | ||
[2] | Go to Sub Menu 2 | ||
[3] | Go to Menu 6 | ||
------+------------------------------------------------------------------------- | ||
[0] | Quit | ||
================================================================================ | ||
Press menu number (0-3): Host: host User: user | ||
================================================================================ | ||
Confirmation | ||
-------------------------------------------------------------------------------- | ||
Would execute: Menu 6 | ||
================================================================================ | ||
Do you really want to execute? (y/n) [n]: Host: host User: user | ||
================================================================================ | ||
Executing: Menu 6 | ||
-------------------------------------------------------------------------------- | ||
6 | ||
7 | ||
-------------------------------------------------------------------------------- | ||
Return code: 1 | ||
================================================================================ | ||
Press any key to continue...Host: host User: user | ||
================================================================================ | ||
Main Menu | ||
-------------------------------------------------------------------------------- | ||
[1] | Go to Sub Menu 1 | ||
[2] | Go to Sub Menu 2 | ||
[3] | Go to Menu 6 | ||
------+------------------------------------------------------------------------- | ||
[0] | Quit | ||
================================================================================ | ||
Press menu number (0-3): |
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,17 @@ | ||
--- | ||
Main Menu: | ||
- Sub Menu 1: | ||
- Menu 1: | ||
- echo 1 | ||
- echo 2 | ||
- Sub Menu 2: | ||
- Sub Menu 3: | ||
- Menu 3: echo 3 | ||
- Menu 4: echo 4 | ||
- Menu 5: echo 5 | ||
- Menu 6: | ||
- echo 1 | ||
- echo 2 | ||
- "false" | ||
- echo 3 | ||
|