Skip to content

Commit

Permalink
docs(docs): explicit mention of built-in APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Apr 13, 2024
1 parent acacd55 commit 62d98ef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ not.
has_executable 'tmux'
```

This line is using the [available API](/lib) to check if the command `tmux` is
exists. If it is exists, the script will halt and nothing will get installed.
This basically means skip the installation if it was installed already.
This line is using the available [built-in API](/lib) to check if the command
`tmux` is exists. If it is exists, the script will halt and nothing will get
installed. This basically means skip the installation if it was installed
already.

```sh
use_apt 'tmux'
Expand Down Expand Up @@ -124,7 +125,7 @@ if various kind of software is exists or not. To name a few, you could use
- `has_app '<app name>'`
- `has_string '<string>' command args...`

Check out [API references](/lib) for a function prefixed with `has_`.
Check out [built-in API references](/lib) for a function prefixed with `has_`.

### Skip installation for a specific system

Expand Down

0 comments on commit 62d98ef

Please sign in to comment.