update readme
This commit is contained in:
@@ -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
-2
@@ -18,7 +18,7 @@ int main(int argc, char* argv[])
|
|||||||
cout << "Usage: cppipe [-g] FILE [ARGUMENTS]...\n";
|
cout << "Usage: cppipe [-g] FILE [ARGUMENTS]...\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(!strcmp(argv[1], "--help"))
|
if( !strcmp(argv[1], "--help") )
|
||||||
{
|
{
|
||||||
cout << "Usage: cppipe [-g] FILE [ARGUMENTS]...\n"
|
cout << "Usage: cppipe [-g] FILE [ARGUMENTS]...\n"
|
||||||
<< "Compile and run C++ source FILE that uses the cppipe library.\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;
|
bool debug = false;
|
||||||
int file_arg = 1;
|
int file_arg = 1;
|
||||||
if(!strcmp(argv[1], "-g"))
|
if( !strcmp(argv[1], "-g") )
|
||||||
{
|
{
|
||||||
if(argc < 3)
|
if(argc < 3)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user