2
0
Fork
You've already forked tem
0
Clone your templates blazingly fast
  • Rust 100%
2025年11月16日 17:29:04 +02:00
src Add sample config file during init, improved config file loading & add default help display 2025年01月16日 02:26:20 +02:00
.gitignore Update gitprocessor to use configuration arrays instead of objects 2025年01月14日 01:17:16 +02:00
Cargo.toml Increment version 2025年01月16日 02:28:57 +02:00
README.md Update README 2025年01月17日 01:33:47 +02:00

tem

Clone your templates blazingly fast

Content

1. Installation

  • Install tem using one of the following methods:
    • Using Cargo (recommended if rustup is installed or cargo bin is in your PATH):
      cargo install tem
      
    • Building from source:
      1. Clone the repository:
        git clone <repository-url>
        
      2. Build the program:
        cd tem
        cargo build --release
        
      3. Use the compiled binary in ./target/release/tem
    • Using a prebuilt binary:
      1. Download the attached binary for your platform from the release page
      2. Run the binary directly:
        ./tem
        

2. Usage

  1. Initialize the configuration:

    tem init
    

    This will create a configuration file at the default location written in the output (e.g., ~/.config/.tem/config.toml)

  2. Modify the generated configuration file to include your own templates

    [git]
    react-vite = ["git@github.com:axbg/react-vite-starter"] # example template
    
  3. Generate a project using a template:

    tem <<template_name>> <<project_name>>
    

    Replace <<template_name>> with the desired template name and <<project_name>> with the name of the target directory

  4. Use the --help flag to learn more about additional features, like branch selection and implicit cloning

    tem --help
    

3. Notes

  • Supported processors:
    • git
    • more processors will be added in the future