Skip to content

Commit

Permalink
Version 0.0.6
Browse files Browse the repository at this point in the history
* Also add task lib to example
  • Loading branch information
filiptibell committed Jan 24, 2023
1 parent 8020d93 commit 76f2107
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 11 deletions.
33 changes: 27 additions & 6 deletions .lune/hello_lune.luau
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -45,7 +66,7 @@ for key, value in process.env do
end

--[==[
EXAMPLE #4
EXAMPLE #5

Read files in the current directory

Expand Down Expand Up @@ -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

Expand All @@ -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

Expand All @@ -130,7 +151,7 @@ if not process.env.GITHUB_ACTIONS then
end

--[==[
EXAMPLE #7
EXAMPLE #8

Using the built-in networking library
]==]
Expand Down Expand Up @@ -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
]==]
Expand Down Expand Up @@ -196,7 +217,7 @@ print(string.rep("—", 22))
console.resetColor()

--[==[
EXAMPLE #9
EXAMPLE #10

Saying goodbye 😔
]==]
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lune.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Lune v0.0.5
# Lune v0.0.6
---
globals:
# Console
Expand Down
2 changes: 1 addition & 1 deletion luneTypes.d.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Lune v0.0.5
-- Lune v0.0.6

declare console: {
resetColor: () -> (),
Expand Down

0 comments on commit 76f2107

Please sign in to comment.