update readme

This commit is contained in:
vrd
2023-10-18 13:31:50 +03:00
parent 11b2cef4f0
commit bcf73daaa9
3 changed files with 18 additions and 7 deletions
+14 -5
View File
@@ -1,18 +1,27 @@
cppipe - C Plus Pipe
====================
cppipe is a utility that allows you to use C++ programs as scripts. cppipe is a utility that allows you to use C++ programs as scripts.
it also offers a shell like syntax for seamless command execution it also offers a shell like syntax for seamless command execution
In this way your scripts can benefit from increased control and speed, while In this way your scripts can benefit from increased control and speed, while
maintaining a lot of the potential for simple command call syntax. maintaining a lot of the potential for simple command call syntax.
INSTALLATION: Webpage
In terminal use: -------
https://vene.volconst.com/en/cppipe
Installation
------------
git clone https://gitlab.com/venelin98/cppipe.git
cd cppipe
sudo ./install.sh sudo ./install.sh
HOW TO WRITE A CPPIPE PROGRAM: How to write a cppipe program
-----------------------------
Just include <cppipe/commands.hpp> Just include <cppipe/commands.hpp>
HOW TO EXECUTE A CPPIPE PROGRAM: How to execute a cppipe program
In terminal use: -------------------------------
cppipe my_cppipe_program.cpp ${ANY_ARGUMENTS_FOR_YOUR_PROGRAM} cppipe my_cppipe_program.cpp ${ANY_ARGUMENTS_FOR_YOUR_PROGRAM}
+2
View File
@@ -52,6 +52,8 @@ int main()
// wait for all detached // wait for all detached
while(wait(nullptr) != -1); while(wait(nullptr) != -1);
exec( echo + "OK 11/11" );
// todo // todo
// exec( echo + $(echo + "OK 11/11") ); // exec( echo + $(echo + "OK 11/11") );
} }