Skip to content

Commit

Permalink
Generate YAML variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel committed Dec 6, 2024
1 parent 5d2029d commit 2ab399c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pulumi_wasm_generator_lib/src/description.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl<'a> Description<'a> {
match line.trim() {
"<!--Start PulumiCodeChooser -->" | "{{% examples %}}" => (Examples, vec![]),
// Rustdoc treats ``` as rust code block
"```" => (Shell, vec!["```sh".to_string()]),
"```" => (LanguageOutsideExamples, vec!["```sh".to_string()]),
l if l.starts_with("```") => (LanguageOutsideExamples, vec![line.to_string()]),
_ => (Initial, vec![line.to_string()]),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ prints the container ID

you provide the definition for the resource as follows

<!--Start PulumiCodeChooser -->
```yaml
resources:
foo:
Expand All @@ -150,6 +151,7 @@ resources:
- internal: 80
external: 8080
```
<!--End PulumiCodeChooser -->

then the import command is as follows

Expand Down

0 comments on commit 2ab399c

Please sign in to comment.