Commit Graph

71 Commits

Author SHA1 Message Date
prozessorkern 73e8f0af03 fixed whitespaces in makefile 2020-05-01 13:43:58 +02:00
prozessorkern c74e37b846 fix #47 now calling a continued command even without new input data
added integration tests
2020-05-01 13:19:33 +02:00
sebastian ebf65d7448 Merge branch 'Fix_redundant_assignment' of shimatta/shellmatta into develop 2020-04-20 21:08:02 +02:00
S.Hentges 0fa2e5d1f8 Fix bug in shellmatta.c 2020-04-20 21:02:46 +02:00
prozessorkern 3f54a989f3 fixed cppcheck call for older versions of cppcheck - removed misra checking (is broken anyway if there is no misra text file present 2020-04-19 14:45:42 +02:00
prozessorkern 6c76dfc7ae fixed comments to get rid of doxygen warnings 2020-04-01 19:16:11 +02:00
prozessorkern 785d73306d fix #44 add busy mode 2020-03-28 12:12:56 +01:00
prozessorkern 96cf0c8d65 added busy command to the example + declared option parser options as const 2020-03-28 12:08:01 +01:00
prozessorkern d7962a54dc added busy mode and test
a command can now return SHELLMATTA_BUSY
This will be passed back to the caller of processData
afterwards the instance has to be called with the same parameters
The shellmatta will then just call the busy command until it finishes
as soon as the command returns != SHELLMATTA_BUSY the instance will continue processing the rest of the input data
2020-03-28 11:26:50 +01:00
prozessorkern 3b99ad2a56 fix #43 added a config interface to change the newline character expected 2020-03-27 18:35:07 +01:00
prozessorkern c2e4324236 bugfix - now stdin returns 0 if the heredoc body is empty 2020-03-26 05:55:38 +01:00
prozessorkern 5e84f1b022 added continuous mode support fix #3
If a command returns SHELLMATTA_CONTINUE all received data is passed to this command until it returns != SHELLMATTA_CONTINUE or a cancel is received
The data is passed stdin like and can be read byte by byte vie shellmatta_read
The stdin buffer is overwritten witch each new char
2020-03-22 21:27:18 +01:00
prozessorkern 17bb88d292 changed heredoc to exchange data via a stdin like interface with a read function fix #39 2020-03-22 20:37:08 +01:00
prozessorkern 5a00f22e31 added the help command variable to the instance structure to get independant commands for each instance fix #42 2020-03-22 20:07:30 +01:00
prozessorkern 2d130e2ee1 added long option parser fix #1 2020-03-22 18:57:31 +01:00
prozessorkern ecc43307af added first working option parser for short options 2020-03-16 22:08:06 +01:00
prozessorkern 60c4c7dadd added basic interface of the shellmatta option parser + started adding a test module 2020-03-08 22:02:51 +01:00
prozessorkern 2921f9791b fix #15 added an api to control mode and echo + fixed the implementation and added tests 2020-03-08 19:56:42 +01:00
shimatta e970b6c941 Merge branch 'feature/#14-Add-shellmatta_resetShell-to-the-API' of shimatta/shellmatta into develop
close #14
2020-03-01 21:08:18 +01:00
prozessorkern bf1d91eca7 close #14 - added a resetShell api function + fixed some problems 2020-03-01 21:07:08 +01:00
shimatta 48fcf05b7d Merge branch 'feature/#34-Add-backspace-support-for-0x7f' of shimatta/shellmatta into develop
close #34
2020-03-01 19:06:54 +01:00
prozessorkern 4f7fbff2e8 close #34 added 0x7f as backspace and removed wrong check for 0x7e as delete. close #34 2020-03-01 19:05:50 +01:00
prozessorkern 72777a6ac8 Merge branch 'develop' of https://git.shimatta.net/shimatta/shellmatta into develop 2020-03-01 18:50:44 +01:00
shimatta e27ba5317a Merge branch 'feature/#31-make-unneeded-command-parameters-optional' of shimatta/shellmatta into develop
close #31
2020-03-01 18:50:06 +01:00
shimatta b1b16b1f0d Merge branch 'feature/#31-make-unneeded-command-parameters-optional' of shimatta/shellmatta into develop
fix #31
2020-03-01 18:46:41 +01:00
prozessorkern d2617a4f86 close #31 - made all command parameter except the command name optional + added and fixed tests 2020-03-01 18:45:30 +01:00
shimatta c807372bce Merge branch 'feature/#30-make-help-function-command-and-alias-configurable' of shimatta/shellmatta into develop 2020-03-01 17:54:40 +01:00
prozessorkern c04accdb55 close #30 added overwritable help command parameter and fixed some compiler issues (some of them only appeared when compiling with optimization) 2020-03-01 17:53:27 +01:00
shimatta 4f9ff4fe3c Merge branch 'feature/#9-add-remove-command-to-api' of shimatta/shellmatta into develop 2020-02-03 21:35:58 +01:00
prozessorkern d1649e5e86 added remove api + small integratio test close #9 2020-02-03 21:35:20 +01:00
shimatta 1c294bb7d1 Merge branch 'feature/#21-remove-e' of shimatta/shellmatta into develop
Replaced all bad escapes and added -pedantic to the compiler flags fix #21
2020-02-03 20:51:10 +01:00
prozessorkern 34ec2d9b45 removed \e from sourcecode and testcases 2020-02-03 20:45:19 +01:00
shimatta ea3c90f305 Merge branch 'feature/add_tests_#5' of shimatta/shellmatta into develop 2020-02-03 20:32:03 +01:00
shimatta 017c3c050e Merge branch 'feature/#20-heredoc' of shimatta/shellmatta into develop 2020-02-03 20:29:37 +01:00
prozessorkern 11bf2d2671 added some testcases
+ adapted makefile to delete coverage data from former runs
2019-12-05 22:55:28 +01:00
prozessorkern 5f96d86892 added vscode config 2019-12-05 22:45:41 +01:00
prozessorkern 8cedf30925 changed doxygile location 2019-12-05 21:29:48 +01:00
Stefan Strobel fe3c1e3a43 Added dummy testcases to integrate all source files into coverage meassurement 2019-12-05 17:55:03 +01:00
Stefan Strobel cf7ac4d116 Merge branch 'feature/add_tests_#5' of https://git.shimatta.net/shimatta/shellmatta into feature/add_tests_#5 2019-12-05 14:39:40 +01:00
Stefan Strobel 3194012bae got rid of compiler warnings 2019-12-05 14:39:26 +01:00
prozessorkern af8fea78da added cppcheck call - requires cppcheck > 1.88 2019-08-04 23:17:15 +02:00
prozessorkern 33e4e20474 added integration test for heredoc parsing 2019-07-30 23:55:46 +02:00
prozessorkern 16365f341e changed heredoc support
now the input string is kept intact until the end of the input is reached
this enables the history buffer to store the complete command
Still broken:
history buffer with heredoc wont execute because the delimiter is not determined correctly
editing of multiline things
2019-07-30 23:55:12 +02:00
prozessorkern c9252029fd fixed broken coverage meassurement in integration test
included the objects of shellmatta instead of the test files
2019-07-30 21:54:21 +02:00
prozessorkern 280e512746 added basic heredoc function
Some things are broken:
navigation in multiline inputs
history buffer for multiline inputs
some things not been noticed yet
2019-07-29 01:30:16 +02:00
prozessorkern fc8a34dd1c Merge branch 'develop' into feature/add_tests_#5 2019-07-28 22:50:23 +02:00
shimatta ad60578aab Merge branch 'bugfix/#18-lengt-of-commands-not-checked' of shimatta/shellmatta into develop
fix #18 added length check in command parser
2019-07-28 22:35:47 +02:00
prozessorkern 21212d05b8 determine the length of the input command abd compare the length with the length of the known commands 2019-07-28 22:33:45 +02:00
prozessorkern 5ff3bfa12e added some integration tests
to test the integrated shellmatta using only the external api
2019-07-28 22:28:54 +02:00
prozessorkern e5bf8572c2 fixed broken forward cursor fix #17 2019-07-27 16:39:37 +02:00