Skip to content

Commit

Permalink
Prdoc & variable name correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkazu committed Nov 29, 2024
1 parent 5322d97 commit d37c68e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ fn get_chain_spec_builder_path() -> &'static str {
}

#[docify::export_content]
fn cmd_list_presets(path: &str) -> String {
fn cmd_list_presets(path_runtime: &str) -> String {
bash!(
chain-spec-builder list-presets -r $path
chain-spec-builder list-presets -r $path_runtime
)
}

Expand All @@ -57,9 +57,9 @@ fn list_presets() {
}

#[docify::export_content]
fn cmd_get_preset(path: &str) -> String {
fn cmd_get_preset(path_runtime: &str) -> String {
bash!(
chain-spec-builder display-preset -r $path -p preset_2
chain-spec-builder display-preset -r $path_runtime -p preset_2
)
}

Expand Down Expand Up @@ -87,9 +87,9 @@ fn get_preset() {
}

#[docify::export_content]
fn cmd_generate_chain_spec(path: &str) -> String {
fn cmd_generate_chain_spec(path_runtime: &str) -> String {
bash!(
chain-spec-builder -c /dev/stdout create -r $path named-preset preset_2
chain-spec-builder -c /dev/stdout create -r $path_runtime named-preset preset_2
)
}

Expand Down Expand Up @@ -136,9 +136,9 @@ fn generate_chain_spec() {
}

#[docify::export_content]
fn cmd_generate_para_chain_spec(path: &str) -> String {
fn cmd_generate_para_chain_spec(path_runtime: &str) -> String {
bash!(
chain-spec-builder -c /dev/stdout create -c polkadot -p 1000 -r $path named-preset preset_2
chain-spec-builder -c /dev/stdout create -c polkadot -p 1000 -r $path_runtime named-preset preset_2
)
}

Expand Down
2 changes: 1 addition & 1 deletion prdoc/pr_6624.prdoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ title: Use `cmd_lib` instead of `std::process::Command` when using `#[docify::ex
doc:
- audience: Runtime Dev
description: |
"See issue #6194."
"Simplified the display of commands and ensured they are tested for chain spec builder's `polkadot-sdk` reference docs."

crates: []

0 comments on commit d37c68e

Please sign in to comment.