archetect

所属分类:自动编程
开发工具:Rust
文件大小:189KB
下载次数:0
上传日期:2023-05-01 06:12:45
上 传 者sh-1993
说明:  功能强大的以代码为中心的内容生成器
(A powerful code-centric content generator)

文件列表:
.dockerignore (26, 2022-08-14)
.rustfmt.toml (39, 2022-08-14)
Cargo.toml (70, 2022-08-14)
Dockerfile (575, 2022-08-14)
LICENSE-MIT (1070, 2022-08-14)
archetect-cli (0, 2022-08-14)
archetect-cli\Cargo.toml (836, 2022-08-14)
archetect-cli\src (0, 2022-08-14)
archetect-cli\src\cli.rs (8105, 2022-08-14)
archetect-cli\src\main.rs (6485, 2022-08-14)
archetect-cli\src\vendor (0, 2022-08-14)
archetect-cli\src\vendor\loggerv (0, 2022-08-14)
archetect-cli\src\vendor\loggerv\LICENSE-MIT (1079, 2022-08-14)
archetect-cli\src\vendor\loggerv\mod.rs (30431, 2022-08-14)
archetect-cli\src\vendor\mod.rs (16, 2022-08-14)
archetect-core (0, 2022-08-14)
archetect-core\Cargo.toml (1502, 2022-08-14)
archetect-core\examples (0, 2022-08-14)
archetect-core\examples\actix (0, 2022-08-14)
archetect-core\examples\actix\Cargo.toml (183, 2022-08-14)
archetect-core\examples\actix\src (0, 2022-08-14)
archetect-core\examples\actix\src\main.rs (1828, 2022-08-14)
archetect-core\examples\actix\static (0, 2022-08-14)
archetect-core\examples\actix\static\style.css (42, 2022-08-14)
archetect-core\examples\actix\templates (0, 2022-08-14)
archetect-core\examples\actix\templates\404.html (151, 2022-08-14)
archetect-core\examples\actix\templates\base.html (554, 2022-08-14)
archetect-core\examples\actix\templates\detail.html (170, 2022-08-14)
archetect-core\examples\actix\templates\index.html (168, 2022-08-14)
archetect-core\examples\actix\templates\nav.html (160, 2022-08-14)
archetect-core\examples\basic (0, 2022-08-14)
... ...

# archetect ![Rust](https://github.com/archetect/archetect/workflows/Rust/badge.svg) Archetect is a powerful code-centric, language agnostic content generator, capable of generating single files, complex projects, or entire architectures. Key features include: * A Jinja2-like templating syntax * A yaml-based configuration DSL * Easy installation * Easy archetype authoring and publishing (Git repos or local directories) * Smart pluralization and singularization functions (soliloquy->soliloquies, calf->calves) * Smart casing functions (camelCase, PascalCase, snake_case, title-case, CONSTANT_CASE) * Archetype compositions * A distributed menu/catalog system Modules: * [archetect-cli](archetect-cli/README.md) * [archetect-core](archetect-core/README.md) ## Quick Start ### Installation For a more in-depth guide to installing archetect, see the [Installation Guide](https://archetect.github.io/getting_started/installation.html). Archetect is a CLI application, and can either be installed by downloading a pre-built binary from Archetect's [Releases Page](https://github.com/archetect/archetect/releases/latest), or by installing with [Rust Lang's](https://rustup.rs/) build tool, cargo: ```shell 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: ```shell 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. ### Rendering Archetypes From this point, browse the archetypes and catalogs within the [Archetect Github organization](https://github.com/archetect) 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: ```shell # 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 ``` ## Documentation * [Installation Guide](https://archetect.github.io/getting_started/installation.html) * [Archetect Documentation](https://archetect.github.io/archetect.html) ## Binary Releases [Releases for OSX, Windows, and Linux](https://github.com/archetect/archetect/releases) ## *Usage* ``` archetect 0.5.0 Jimmie Fulton Generates Content from Archetype Template Directories and Git Repositories. USAGE: archetect [FLAGS] [OPTIONS] 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 ... Supply a key=value pair as an answer to a variable question. -A, --answer-file ... Supply an answers file as answers to variable questions. -s, --switch ... 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 ```

近期下载者

相关文件


收藏者