diff --git a/.lune/hello_lune.luau b/.lune/hello_lune.luau index 4cef0b1..c03f8fa 100644 --- a/.lune/hello_lune.luau +++ b/.lune/hello_lune.luau @@ -26,6 +26,27 @@ end --[==[ EXAMPLE #3 + Spawning tasks +]==] + +task.spawn(function() + print("\nSpawned a task that will run instantly but not block") + task.wait(5) +end) + +print("Spawning a delayed task that will run in 5 seconds") +task.delay(5, function() + print() + print("...") + task.wait(1) + print("Hello again!") + task.wait(1) + print("Goodbye again! 🌙") +end) + +--[==[ + EXAMPLE #4 + Get & set environment variables Checks if environment variables are empty or not, @@ -45,7 +66,7 @@ for key, value in process.env do end --[==[ - EXAMPLE #4 + EXAMPLE #5 Read files in the current directory @@ -88,7 +109,7 @@ end -- since the ping command does not work in azure if not process.env.GITHUB_ACTIONS then --[==[ - EXAMPLE #5 + EXAMPLE #6 Call out to another program / executable @@ -103,7 +124,7 @@ if not process.env.GITHUB_ACTIONS then }) --[==[ - EXAMPLE #6 + EXAMPLE #7 Using the result of a spawned process, exiting the process @@ -130,7 +151,7 @@ if not process.env.GITHUB_ACTIONS then end --[==[ - EXAMPLE #7 + EXAMPLE #8 Using the built-in networking library ]==] @@ -167,7 +188,7 @@ assert(apiResponse.body == "bar", "Invalid json response") print("Got valid JSON response with changes applied") --[==[ - EXAMPLE #8 + EXAMPLE #9 Using the console library to print pretty ]==] @@ -196,7 +217,7 @@ print(string.rep("—", 22)) console.resetColor() --[==[ - EXAMPLE #9 + EXAMPLE #10 Saying goodbye 😔 ]==] diff --git a/CHANGELOG.md b/CHANGELOG.md index c5e8a30..3000f8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## `0.0.6` - January 23rd, 2023 ### Added diff --git a/Cargo.lock b/Cargo.lock index 293722f..592d6f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -471,7 +471,7 @@ dependencies = [ [[package]] name = "lune" -version = "0.0.5" +version = "0.0.6" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 4e4ff39..7a8e57e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune" -version = "0.0.5" +version = "0.0.6" edition = "2021" license = "MPL 2.0" repository = "https://github.com/filiptibell/lune" diff --git a/lune.yml b/lune.yml index 8d2ae18..32a09cb 100644 --- a/lune.yml +++ b/lune.yml @@ -1,4 +1,4 @@ -# Lune v0.0.5 +# Lune v0.0.6 --- globals: # Console diff --git a/luneTypes.d.luau b/luneTypes.d.luau index b0e92cc..c2312bf 100644 --- a/luneTypes.d.luau +++ b/luneTypes.d.luau @@ -1,4 +1,4 @@ --- Lune v0.0.5 +-- Lune v0.0.6 declare console: { resetColor: () -> (),