Planetary - A P Language Build Manager
Planetary is a command-line tool designed to simplify the management and building of P projects. It provides a streamlined approach to initializing, templating, and checking P projects, making it easier to get started on a project right away.
- Project Initialization: Quickly set up a new P project with the necessary directory structure and configuration files.
- Template Generation: Create a template for an existing P project, allowing for consistent project organization.
- Error Checking: Perform basic error checking on P projects to identify potential issues early on.
- User-Friendly Interface: Simple and intuitive command-line interface for ease of use.
-
Prerequisites: Ensure you have the following installed:
- OCaml
- Dune
-
Build and Install:
dune build @install
Planetary - P Language Project Manager
Usage:
planetary init <project_name> [-s <folder>] - Initialize a new P project
planetary template <project_name> - Generate a template for an existing project
planetary help - Display this help message
Options:
-s <folder> - Skip creating the specified folder (can be used multiple times)
-
Initialize a new project named "TCP":
planetary init TCP
Planetary should generate all the folders necessary as well as a PProj file for you to get started:
-
Generate a template for an existing project named "TCP":
You can also use Planetary to generate a
.PProj
file for existing projects:planetary template existing_project
- Note: There's a bug where this command only works when executed from a directory above the existing project. A fix for this should be coming soon.
-
Initialize a project while skipping the PSPEC folder:
planetary init my_p_project -s PSPEC
Contributions are welcome! Please feel free to open issues or submit pull requests.