Rustelo/assets/rustelo-init-config-example.toml

67 lines
2.0 KiB
TOML
Raw Normal View History

2026-02-08 20:18:46 +00:00
# Rustelo Init Configuration File
# This file allows you to skip interactive prompts when creating new projects
# Usage: cargo rustelo init my-project --config rustelo-init-config.toml
# Template to use for initialization
# Options: "basic", "minimal", "enterprise", "cms", "saas", "ai-powered", "e-commerce"
# If not specified, uses the template from CLI argument or "basic" as default
template = "basic"
# How to handle existing directories
# Options:
# "merge" - Merge template into existing directory (default)
# "replace" - Remove existing directory and create fresh
# "cancel" - Cancel operation if directory exists
existing_directory_action = "merge"
# Skip safety confirmations (use with caution)
# When true, assumes "yes" to all safety prompts
auto_confirm = false
# Asset configuration section
[assets]
# Template source configuration
# Options:
# "remote" - Download from GitHub/remote URL
# "local" - Use local framework development setup
# Custom URL starting with "http" or "https"
source = "local"
# Directory to store assets in your project
# Options:
# ".rustelo-assets" (recommended)
# "templates"
# Custom path
download_location = ".rustelo-assets"
# Framework path for local development
# Required when source = "local"
# Should point to your local rustelo framework directory
framework_path = "../rustelo"
# Enable asset caching to speed up repeated operations
cache_enabled = true
# Automatic asset updates
# true = Update assets automatically on build
# false = Manual updates only
auto_update = true
# Notification methods for updates and operations
# Available options: "console", "file", "webhook"
notification_methods = ["console"]
# Example configurations for different scenarios:
# For production/CI environments:
# source = "remote"
# download_location = ".rustelo-assets"
# auto_update = false
# existing_directory_action = "cancel"
# For development/testing:
# source = "local"
# framework_path = "../rustelo"
# auto_update = true
2026-02-08 20:37:49 +00:00
# existing_directory_action = "merge"