Crate syncable_cli

Source
Expand description

§Syncable IaC CLI

A Rust-based command-line application that analyzes code repositories and automatically generates Infrastructure as Code configurations including Dockerfiles, Docker Compose files, and Terraform configurations.

§Features

  • Language Detection: Automatically detects programming languages and their versions
  • Framework Analysis: Identifies frameworks and libraries used in the project
  • Smart Generation: Creates optimized IaC configurations based on project analysis
  • Multiple Formats: Supports Docker, Docker Compose, and Terraform generation
  • Security-First: Generates secure configurations following best practices

§Example

use syncable_cli::{analyze_project, generate_dockerfile};
use std::path::Path;

let project_path = Path::new("./my-project");
let analysis = analyze_project(project_path)?;
let dockerfile = generate_dockerfile(&analysis)?;
println!("{}", dockerfile);

Re-exports§

pub use analyzer::analyze_project;
pub use analyzer::ProjectAnalysis;
pub use error::IaCGeneratorError;
pub use error::Result;
pub use generator::generate_dockerfile;
pub use generator::generate_compose;
pub use generator::generate_terraform;
pub use handlers::*;

Modules§

analyzer
Analyzer Module
cli
common
config
error
generator
handlers

Constants§

VERSION
The current version of the CLI tool

Functions§

run_command