Simple CLI tool to easily create/manipulate programming files.
Add $GOPATH to $PATH, if you haven't already:
export PATH=$PATH:$(go env GOPATH)/bin
Then simply run
go get github.com/grbenjamin/lazy
You can use three different commands:
lazy create
: creates a file.lazy compile
: compiles a file. (For now only work on C, C++ and Java files)lazy run
: runs a file.
Run lazy help
for help of any command.
Examples:
lazy create -t myfile.rs
will create a directory calledrs_projects
along with a filemyfile.rs
under~/Documents/
, and open it with the terminal.lazy compile program.c otherfile.cpp
will search for each file under the~/Documents/
directory and all subdirectories and compile them.lazy run foo.c
will search for the file under~/Documents/
and all subdirectories and run it. If the file is not compiled yet, it will do so and then run it.