LDOT is a command-line tool designed to help DevOps Engineers manage local development environments efficiently. It provides a set of commands to streamline the setup, configuration, and execution of development stacks, making local development workflows smoother and more productive.
To install LDOT, you have two options:
Pre-built binaries for Windows, Linux, and macOS are available in the Releases section of the LDOT GitHub repository. Follow these steps to install LDOT using pre-built binaries:
-
Visit the Releases section of the LDOT GitHub repository.
-
Download the zipped binary for your operating system (e.g.,
ldot-x86_64-pc-windows-msvc.zip
for Windows,ldot-x86_64-unknown-linux-gnu.tar.gz
for Linux, orldot-x86_64-apple-darwin.tar.gz
for macOS). -
Extract the contents of the zipped archive file using your favorite tool (mine is 7-zip).
-
Place the unzipped binary in a directory that is included in your system's PATH.
-
Open a terminal or command prompt and run LDOT by entering
ldot
followed by the desired command.
This option provides a quick way to get started with LDOT without the need to build it from source.
Be sure you have first followed the instructions to get Rust installed on your machine.
-
Clone the LDOT repository to your local machine:
git clone https://github.com/UndyingSoul/ldot.git
-
Change into the LDOT directory:
cd ldot
-
Build the LDOT binary using Cargo:
cargo build --release
-
Once the build process is complete, you can find the LDOT binary in the
target/release
directory. -
You can either add the binary to your system's PATH or run it directly from the
target/release
directory.
LDOT provides a range of commands and options to manage your local development environment. Below are the available commands:
ldot validate [filename]
- Use this command to validate a configuration file.
- Replace
[filename]
with the path to your configuration file, default isldot_stack.json
. - Every command in the stack scripts or project stage is executed using the default shell.
ldot generate
- Use this command to generate a new LDOT stack configuration file using the configuration wizard.
- Projects, Scripts, Stages, and commands are not configurable using this utility. Edit the file directly to configure the stack.
- For examples of this file, check the example.
ldot load [filename]
- Use this command to load a specific configuration file.
- Replace
[filename]
with the path to your configuration file, default isldot_stack.json
.
ldot unload [filename]
- Use this command to unload a specific configuration file.
- Replace
[filename]
with the path to your configuration file, default isldot_stack.json
.
LDOT allows you to configure various aspects of the tool. Below are the available configuration commands:
ldot config list
- Use this command to list all current LDOT configurations.
ldot config default <stack_name>
- Use this command to set the default development stack.
- Replace
<stack_name>
with the name of the stack you want to set as default.
ldot config regenerate
- Use this command to regenerate the LDOT configuration file in case of broken configs.
ldot execute [stack_name] <project_name> <stage_name>
- Use this command to execute commands for a specific stack, project, and stage.
- If no arguments are provided, LDOT will use the default stack and prompt you for project and stage names.
ldot version
- Use this command to display LDOT build details, including program name, description, author, homepage, repository, and version.
ldot script [stack_name] <script_name>
- Use this command to execute a script associated with a specific stack.
- If no stack name is provided, LDOT will use the default stack.
- Replace
<script_name>
with the name of the script you want to execute.
LDOT is licensed under the MIT License. Feel free to use, modify, and distribute it in accordance with the terms of this license.