Commit Graph

96 Commits

Author SHA1 Message Date
shimatta 28e82c65de Merge branch 'develop' of shimatta/shellmatta into master 2021-01-24 20:18:59 +01:00
shimatta 4d542f973b Merge branch 'feature/#55-help-command-shall-only-print-help-and-usage-as-derailled-output' of shimatta/shellmatta into develop 2021-01-24 20:15:22 +01:00
prozessorkern c1f42d8239 checking for buffer overflow in insertChars function 2021-01-24 20:10:43 +01:00
prozessorkern a5bd5c57ab added detailed help function 2021-01-24 19:46:12 +01:00
prozessorkern e3c35bd0d5 improved doxygen documentation 2021-01-24 01:10:44 +01:00
prozessorkern eb524436ce improved style and fixed some cppcheck findings 2021-01-24 00:10:43 +01:00
shimatta a9b8dcb504 Merge branch 'feature/#52-only-store-new-commands-in-history' of shimatta/shellmatta into develop
fix #52
2021-01-23 23:40:31 +01:00
prozessorkern c7f238c005 fixed comments 2021-01-23 23:38:47 +01:00
prozessorkern 0b0a52d898 fixed the history buffer when there is an overflow
added test cases
2021-01-23 23:35:32 +01:00
prozessorkern e6b45952b3 added tests for shellmatta_history and improved documentation
added content to the readme
added fff for function faking
fixed coverage reports of the integrationtest
added testscenarios to test the history buffer
2021-01-22 23:13:20 +01:00
prozessorkern 438e4c4d76 fix dirty flag 2021-01-20 21:22:23 +01:00
prozessorkern ded69bc1f4 make mario happy 2021-01-20 21:16:53 +01:00
prozessorkern 88c33895f6 added check if the current entered command matches the last command in the history buffer - if the command is already stored it will not be stored again 2021-01-20 21:13:01 +01:00
prozessorkern ac6ffb9602 fixed findings from static analysis 2020-12-02 15:47:23 +01:00
shimatta 6cfd157408 Merge branch '#50_Add_unittest_for_shellmatta_opt_peekNextHunk' of shimatta/shellmatta into develop 2020-12-02 15:39:53 +01:00
S.Hentges 68ec0ab3dc refactor testcases, delete doubling testcases 2020-11-11 21:25:05 +01:00
S.Hentges e495346d44 Add unittest for otp_peekNextHunk 2020-10-31 15:16:16 +01:00
sebastian ca293841e8 Merge branch '#48_Add_unittest_for_shellmatte_utils_removeChars' of shimatta/shellmatta into develop 2020-10-30 22:32:08 +01:00
prozessorkern f5f9c62493 tried to improve the documentation of the function utils_removeChars + made it more defensive + fixed the testcases 2020-06-02 18:40:24 +02:00
S.Hentges 2060cd61eb Expand unittest for utils_removeChars 2020-05-28 22:39:53 +02:00
S.Hentges 15c846a9f1 Fix identation 2020-05-18 21:14:47 +02:00
S.Hentges 0ae7e24470 Revert "Fix identation"
This reverts commit 0ebbcc602c.
2020-05-18 21:10:26 +02:00
S.Hentges 0ebbcc602c Fix identation 2020-05-17 20:15:40 +02:00
S.Hentges 536643a462 Add Unittest for test_utils_removeChars.cpp 2020-05-17 20:09:58 +02:00
prozessorkern 1b7cdb1acc replaced the LICENSE.md file with a plain text file with the standard convention for LICENSE files... 2020-05-17 14:00:15 +02:00
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