Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

hc-generate: Change default template to rust-proc and improve documentation #2009

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG-UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

### Changed

- Changed `hc generate` to use the `rust-proc` template by default [PR#2009](https://github.com/holochain/holochain-rust/pull/2009)

### Deprecated

### Removed
Expand Down
7 changes: 5 additions & 2 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ enum Cli {
#[structopt(parse(from_os_str))]
/// The path to the zome that should be generated (usually in ./zomes/)
zome: PathBuf,
#[structopt(default_value = "rust")]
/// Either the name of a built-in template (rust, rust-proc) or the url to a git repo containing a Zome template.
#[structopt(default_value = "rust-proc")]
/// The template from which to generate the zome
///
/// This should either be the name of a built-in template (rust-proc, rust) or
/// the url to a `tar.gz` containing a Zome template.
template: String,
},
#[structopt(alias = "r")]
Expand Down