2024-10-29 20:06:05 +00:00
|
|
|
# Introduction
|
|
|
|
|
|
|
|
The `pesde/hello` package is intended to be used in examples.
|
|
|
|
|
2024-12-01 12:43:23 +00:00
|
|
|
It exports a library and a binary, both of which print a simple greeting.
|
2024-10-29 20:06:05 +00:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
The package can be installed with the following command:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pesde add pesde/hello
|
|
|
|
```
|
|
|
|
|
|
|
|
## Library
|
|
|
|
|
|
|
|
The library is a single function that prints hello.
|
|
|
|
|
|
|
|
```luau
|
|
|
|
local hello = require("./luau_packages/hello")
|
|
|
|
|
|
|
|
hello()
|
|
|
|
```
|
|
|
|
|
|
|
|
## Binary
|
|
|
|
|
|
|
|
The binary prints hello. You can either run it using `hello` after installing
|
|
|
|
the package in a pesde project like this:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
hello
|
|
|
|
```
|
|
|
|
|
|
|
|
Or you can run it anywhere using `pesde x` like this:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pesde x pesde/hello
|
|
|
|
```
|