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.
|
||||
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 <cppipe/commands.hpp>
|
||||
|
||||
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}
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user