Library that provides a bash-like command line interface for C++ programs.
Find a file
2016-03-16 21:30:52 +01:00
msh-console-library Switched to cmake compilation for compiling msh-console-library as a shared library. Changed exit built-in in the 2016-03-16 21:15:24 +01:00
snippet Switched to cmake compilation for compiling msh-console-library as a shared library. Changed exit built-in in the 2016-03-16 21:15:24 +01:00
.gitignore Removed old files 2016-03-16 21:20:15 +01:00
CMakeLists.txt Switched to cmake compilation for compiling msh-console-library as a shared library. Changed exit built-in in the 2016-03-16 21:15:24 +01:00
license.md Created license.md licensing with the unlicense 2016-03-13 21:03:36 +01:00
README.md Updated README.md 2016-03-16 21:30:52 +01:00

msh-console

Library that provides a bash-like interface for CLI C++ programs

Credits

Code based on "Write a Shell in C" - by Stephen Brennan (http://brennan.io/2015/01/16/write-a-shell-in-c/) The code has been slightly modified.

The library

The library can be compiled as shared library with the CMakeLists.txt file already in msh-console-library/, or it can be compiled with these commands:

cd msh-console-library
g++ -Wall -fPIC -std=c++11 -c command.cpp commands.cpp shell.cpp commandexecutor.cpp 
g++ -shared -Wl,-soname,libmshconsole.so.1.0.0 -o libmshconsole.so.1.0.0 commandexecutor.o command.o commands.o shell.o