Crates.io | archetect-core |
lib.rs | archetect-core |
version | 0.7.3 |
source | src |
created_at | 2021-05-07 04:52:58.465712 |
updated_at | 2021-08-26 23:11:58.815768 |
description | Generates Content from Archetype Template Directories and Git Repositories. |
homepage | https://archetect.github.io |
repository | https://github.com/archetect/archetect |
max_upload_size | |
id | 394098 |
size | 659,354 |
Archetect is a powerful code-centric, language agnostic content generator, capable of generating single files, complex projects, or entire architectures. Key features include:
Modules:
For a more in-depth guide to installing archetect, see the Installation Guide.
Archetect is a CLI application, and can either be installed by downloading a pre-built binary from Archetect's Releases Page, or by installing with Rust Lang's build tool, cargo:
cargo install archetect --force
Once you have Archetect successfully installed and added to your shell's path, you can test that everything is working while also initializing some default settings by generating them with Archetect itself:
archetect render https://github.com/archetect/archetect-initializer.git ~/.archetect/
This will prompt you for your name and email address, and write this into files within the ~/.archetect
, which you can
inspect.
From this point, browse the archetypes and catalogs within the Archetect Github organization for some pre-made archetypes you can use immediately, or for inspiration in making your own. The README.md files commonly have an archetect command line example that can be copy/pasted to your shell to render new projects quickly and easily.
Example:
# To generate a Rust microservice using Actix and Diesel
archetect render https://github.com/archetect/archetype-rust-service-actix-diesel-workspace.git
# To select from a catalog of test_archetypes using a command line menu system
archetect catalog --source https://github.com/archetect/catalog-rust.git
Releases for OSX, Windows, and Linux
archetect 0.5.0
Jimmie Fulton <jimmie.fulton@gmail.com>
Generates Content from Archetype Template Directories and Git Repositories.
USAGE:
archetect [FLAGS] [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-o, --offline Only use directories and already-cached remote git URLs
-V, --version Prints version information
-v, --verbose Increases the level of verbosity
OPTIONS:
-a, --answer <key=value>... Supply a key=value pair as an answer to a variable question.
-A, --answer-file <path>... Supply an answers file as answers to variable questions.
-s, --switch <switches>... Enable switches that may trigger functionality within Archetypes
SUBCOMMANDS:
cache Manage/Select from Archetypes cached from Git Repositories
catalog Select From a Catalog
completions Generate shell completions
help Prints this message or the help of the given subcommand(s)
render Creates content from an Archetype
system archetect system configuration