This is a cli tool will create the base dirs and files of your app for you. The base structure is taken from this repository.
You must have Golang & Make installed to run the build.
Clone the repository on your locale machine, open a terminal in the current
dir and run the go mod tidy command.
Then in a terminal with the same dir, run the command
sudo make exec.
Once finished, you can use the program by calling it in the
terminal with the command cps.
It's very simple! To create a project in the current
directory, simply call cps ., and to create project
in a new directory, simply write what you want your project
to be called. For example cps my-app.
- Basic structure taken from the standards;
- Layout of the main file;
- File
go.modwith project name; - Makefile with parameters:
build: builds the application;run: start the app in dev mode;test: rub all tests;lint: checks your project for design errors;
- Creates a local repository;
- Create a configuration file for
golangci-lint;
Expected in upcoming updates:
- Building the project in PKGBUILD;
- Add some flags to select the type of project, some values (eg port for the server) in the terminal;
If you have any suggestions for changed or improving the current project or would like to help | participate, you can contact me at:
- 3100194@gmail.com
- t.me/blackmarllbor0
If you liked the project or found it useful, give it a star! See you soon!