-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e429f4
commit 8c78e12
Showing
10 changed files
with
52 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
# Getting started | ||
# Getting started | ||
|
||
## Requirements | ||
|
||
- [Rust](https://rustup.rs/) | ||
- [just](https://github.com/casey/just) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
set windows-shell := ["pwsh.exe", "-c"] | ||
|
||
build: | ||
cargo run -p cargo-pulumi | ||
|
||
run: | ||
just build | ||
cargo run -p pulumi_wasm_runner -- run --wasm ../../target/wasm32-wasi/debug/composed.wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2022, Pulumi Corporation. All rights reserved. | ||
|
||
package executors | ||
|
||
import ( | ||
"github.com/andrzejressel/pulumi-wasm/pulumi-language-wasm/fsys" | ||
) | ||
|
||
type justfile struct{} | ||
|
||
var _ wasmExecutorFactory = &justfile{} | ||
|
||
func (s justfile) NewWasmExecutor(opts WasmExecutorOptions) (*WasmExecutor, error) { | ||
exists, err := fsys.FileExists(opts.WD, "justfile") | ||
if err != nil { | ||
return nil, err | ||
} | ||
if !exists { | ||
return nil, nil | ||
} | ||
return s.newWasmCliExecutor() | ||
} | ||
|
||
func (justfile) newWasmCliExecutor() (*WasmExecutor, error) { | ||
return &WasmExecutor{ | ||
Name: "just", | ||
Cmd: "just", | ||
BuildArgs: []string{"build"}, | ||
RunArgs: []string{"run"}, | ||
PluginArgs: []string{"plugin"}, | ||
VersionArgs: []string{"version"}, | ||
}, nil | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.