diff --git a/README b/README index a2484ca..621baf4 100644 --- a/README +++ b/README @@ -1,18 +1,27 @@ +cppipe - C Plus Pipe +==================== cppipe is a utility that allows you to use C++ programs as scripts. it also offers a shell like syntax for seamless command execution In this way your scripts can benefit from increased control and speed, while maintaining a lot of the potential for simple command call syntax. -INSTALLATION: -In terminal use: +Webpage +------- +https://vene.volconst.com/en/cppipe + +Installation +------------ +git clone https://gitlab.com/venelin98/cppipe.git +cd cppipe sudo ./install.sh -HOW TO WRITE A CPPIPE PROGRAM: +How to write a cppipe program +----------------------------- Just include -HOW TO EXECUTE A CPPIPE PROGRAM: -In terminal use: +How to execute a cppipe program +------------------------------- cppipe my_cppipe_program.cpp ${ANY_ARGUMENTS_FOR_YOUR_PROGRAM} diff --git a/cppipe.cpp b/cppipe.cpp index c5220fd..d0d0a6c 100644 --- a/cppipe.cpp +++ b/cppipe.cpp @@ -18,7 +18,7 @@ int main(int argc, char* argv[]) cout << "Usage: cppipe [-g] FILE [ARGUMENTS]...\n"; return 1; } - if(!strcmp(argv[1], "--help")) + if( !strcmp(argv[1], "--help") ) { cout << "Usage: cppipe [-g] FILE [ARGUMENTS]...\n" << "Compile and run C++ source FILE that uses the cppipe library.\n" @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) bool debug = false; int file_arg = 1; - if(!strcmp(argv[1], "-g")) + if( !strcmp(argv[1], "-g") ) { if(argc < 3) { diff --git a/test.cpp b/test.cpp index bc7b95b..11a37a9 100644 --- a/test.cpp +++ b/test.cpp @@ -52,6 +52,8 @@ int main() // wait for all detached while(wait(nullptr) != -1); + exec( echo + "OK 11/11" ); + // todo // exec( echo + $(echo + "OK 11/11") ); }