Skip to content

Commit

Permalink
Change provider naming scheme (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel authored Jul 21, 2024
1 parent b668f87 commit a7a981e
Show file tree
Hide file tree
Showing 18 changed files with 212 additions and 201 deletions.
217 changes: 109 additions & 108 deletions providers/pulumi_wasm_provider_docker/src/bindings.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion providers/pulumi_wasm_provider_docker/wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%docker@4.5.3-PW0DOT0DOT0-DEV;
package pulumi:%docker@4.5.3-ZERO.ZERO.ZERO-DEV;

world %docker-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
2 changes: 1 addition & 1 deletion providers/pulumi_wasm_provider_docker_rust/wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%docker@4.5.3-PW0DOT0DOT0-DEV;
package pulumi:%docker@4.5.3-ZERO.ZERO.ZERO-DEV;

world %docker-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
154 changes: 77 additions & 77 deletions providers/pulumi_wasm_provider_random/src/bindings.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion providers/pulumi_wasm_provider_random/wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%random@4.15.0-PW0DOT0DOT0-DEV;
package pulumi:%random@4.15.0-ZERO.ZERO.ZERO-DEV;

world %random-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
2 changes: 1 addition & 1 deletion providers/pulumi_wasm_provider_random_rust/wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%random@4.15.0-PW0DOT0DOT0-DEV;
package pulumi:%random@4.15.0-ZERO.ZERO.ZERO-DEV;

world %random-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
12 changes: 11 additions & 1 deletion pulumi_wasm_generator_lib/src/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ fn get_main_version() -> String {
}

fn get_main_version_stringify() -> String {
env!("CARGO_PKG_VERSION").replace('.', "DOT")
env!("CARGO_PKG_VERSION")
.replace('0', "ZERO")
.replace('1', "ONE")
.replace('2', "TWO")
.replace('3', "THREE")
.replace('4', "FOUR")
.replace('5', "FIVE")
.replace('6', "SIX")
.replace('7', "SEVEN")
.replace('8', "EIGHT")
.replace('9', "NINE")
}

fn replace_multiple_dashes(s: &str) -> String {
Expand Down
2 changes: 1 addition & 1 deletion pulumi_wasm_generator_lib/src/output/wit/wit.handlebars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:{{package.name}}@{{package.version}}-PW{{package.pulumi_wasm_version_stringify}};
package pulumi:{{package.name}}@{{package.version}}-{{package.pulumi_wasm_version_stringify}};

world {{package.name}}-pulumi {
import component:pulumi-wasm/register-interface@{{package.pulumi_wasm_version}};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%command@0.9.2-PW0DOT0DOT0-DEV;
package pulumi:%command@0.9.2-ZERO.ZERO.ZERO-DEV;

world %command-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%command@0.9.2-PW0DOT0DOT0-DEV;
package pulumi:%command@0.9.2-ZERO.ZERO.ZERO-DEV;

world %command-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%docker@4.5.3-PW0DOT0DOT0-DEV;
package pulumi:%docker@4.5.3-ZERO.ZERO.ZERO-DEV;

world %docker-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%docker@4.5.3-PW0DOT0DOT0-DEV;
package pulumi:%docker@4.5.3-ZERO.ZERO.ZERO-DEV;

world %docker-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%random@4.15.0-PW0DOT0DOT0-DEV;
package pulumi:%random@4.15.0-ZERO.ZERO.ZERO-DEV;

world %random-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%random@4.15.0-PW0DOT0DOT0-DEV;
package pulumi:%random@4.15.0-ZERO.ZERO.ZERO-DEV;

world %random-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%example@0.0.1-PW0DOT0DOT0-DEV;
package pulumi:%example@0.0.1-ZERO.ZERO.ZERO-DEV;

world %example-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%example@0.0.1-PW0DOT0DOT0-DEV;
package pulumi:%example@0.0.1-ZERO.ZERO.ZERO-DEV;

world %example-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%aws-native@0.0.1-PW0DOT0DOT0-DEV;
package pulumi:%aws-native@0.0.1-ZERO.ZERO.ZERO-DEV;

world %aws-native-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pulumi:%aws-native@0.0.1-PW0DOT0DOT0-DEV;
package pulumi:%aws-native@0.0.1-ZERO.ZERO.ZERO-DEV;

world %aws-native-pulumi {
import component:pulumi-wasm/register-interface@0.0.0-DEV;
Expand Down

0 comments on commit a7a981e

Please sign in to comment.