-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rybickic/momento
- Loading branch information
Showing
20 changed files
with
274 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Auto-generated by ./mkrepo.sh | ||
|
||
/.github/workflows/*-pull.yaml linguist-generated | ||
/.github/workflows/*-release.yaml linguist-generated | ||
/**/package-lock.json linguist-generated | ||
/**/*.extern.d.ts linguist-generated | ||
/package-lock.json linguist-generated |
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,16 @@ | ||
bring fs; | ||
|
||
pub class GitAttributes { | ||
new() { | ||
let lines = MutArray<str>[]; | ||
lines.push("# Auto-generated by ./mkrepo.sh"); | ||
lines.push(""); | ||
lines.push("/.github/workflows/*-pull.yaml linguist-generated"); | ||
lines.push("/.github/workflows/*-release.yaml linguist-generated"); | ||
lines.push("/**/package-lock.json linguist-generated"); | ||
lines.push("/**/*.extern.d.ts linguist-generated"); | ||
lines.push("/package-lock.json linguist-generated"); | ||
lines.push(""); | ||
fs.writeFile(".gitattributes", lines.join("\n")); | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 +1,28 @@ | ||
const { spawn } = require("node:child_process"); | ||
|
||
exports.env = () => { | ||
return process.env; | ||
}; | ||
|
||
exports.os = function() { | ||
return process.platform; | ||
}; | ||
|
||
exports._spawn = function(command, args, options) { | ||
const child = spawn(command, args, { | ||
stdio: "pipe", | ||
...options, | ||
}); | ||
|
||
child.stdout.on("data", (data) => | ||
console.log(data.toString().trim()) | ||
); | ||
|
||
child.stderr.on("data", (data) => | ||
console.log(data.toString().trim()) | ||
); | ||
|
||
child.once("error", (err) => { | ||
console.error(err); | ||
}); | ||
} |
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 |
---|---|---|
|
@@ -5,8 +5,8 @@ def handler(event, context): | |
print(event) | ||
print(context) | ||
|
||
foo_env = os.getenv("FOO") | ||
payload = from_function_event(event) | ||
foo_env = os.getenv("FOO") | ||
|
||
email_client = lifted("email") | ||
email_client.send_email(Source="[email protected]", Destination={'ToAddresses': ['[email protected]',],},Message={'Subject': {'Data': 'Winglang Test Email!',},'Body': {'Text': {'Data': 'Hello from Python!',},}},) | ||
|
@@ -77,9 +77,9 @@ def api_handler(event, context): | |
print(event) | ||
print(context) | ||
|
||
req = from_api_event(event) | ||
foo = os.getenv("FOO") | ||
|
||
req = from_api_event(event) | ||
client_put = lifted("bucket") | ||
client_put.put(req["path"], json.dumps(req)) | ||
|
||
|
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,4 +1,4 @@ | ||
wingsdk == 0.0.2 | ||
wingsdk == 0.0.4 | ||
requests | ||
boto3 | ||
Faker | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.