Projects can be tedious to setup and manage, especially when you use a lot of languages, frameworks and tools. Etern is meant to solve that.
All of this points are going to be explained in the following sections.
Download the binary and the path.sh file to your computer. In the same directory input this command:
./path.sh # Pass here the path to the binaryThis will add the binary to your path.
Clone the repository and run the following commands:
git clone https://github.com/maximsenterprise/etern.git
cd etern
make # Check that all commands are installed and work well
./path.sh ./bin/eternTo begin setup simply type etern in your terminal.
The setup is simple, it will ask for three things:
- The Version Control System you are using, it can be
gitorhg. - If you want bolds and italics in the output, it can be
yesorno. - The templates directory, the default is
~/.etern/templates.
Projects are managed by the etern command. You can create a new project by typing etern new and following the instructions.
-
Indicate the language you are going to use. The defaults are:
cpporc++for C++c_c++orc_cppfor C mixed with C++cfor Cadafor Adaerlangfor Erlangjsorjavascriptfor JavaScriptjavafor Javac#orcsharpfor C#rustfor Rustpythonfor Pythoncrystalfor Crystalhtmlfor HTMLelectronfor Electronflutterfor Flutterelixirfor Elixirfsharporf#for F#gofor Gohaskellfor Haskellluafor Luanimfor Nimocamlfor OCamlrubyfor Rubyrailsfor the Rails Frameworkscalafor Scalasparkfor Sparkswiftfor Swiftzigfor Zig
-
Indicate the name of the project.
-
You can also put some flags:
--no-vcsto not initialize a git or mercurial repository.--libto create a library project.--no-runto not create a run script. and more...
Templates are a core part of Etern. They are used to generate the project structure for projects you create.
Normally templates remain in the ~/.etern/templates directory, but you can change this in the setup.
Templates are written in ruby and are just like any other ruby script. Their name is the name of the template followed by .rb, i.e: basic.rb.
Build scripts are used to build your project, it is important to note that they are Hastfiles so Hast must be installed
Hast is a build system that is used to build projects. It is written in Typescript and is very simple to use.
To run simply execute etern run in the project directory.
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you to YaoYuan for yyjson, it is a great library for managing JSON with C++.
Created by Maxims Enterprise in 2024. All rights reserved