# Run Actions

Source: https://athas.dev/docs/run-actions

Run the scripts and tasks your project already declares, without retyping them.

Run actions are the commands your project already has. Athas reads them out of the manifests in
the repository, so there is nothing to configure before the list is useful.

## Open it

Run **Run: Show Actions** from the command palette. Picking an action opens a new terminal and
runs it there, so output, exit code and scrollback behave like any other terminal tab.

## Where the list comes from

| Source          | Read from        |
| --------------- | ---------------- |
| Package scripts | `package.json`   |
| Cargo           | `Cargo.toml`     |
| just            | `justfile`       |
| Make            | `Makefile`       |
| Go              | `go.mod`         |
| Python          | `pyproject.toml` |

A monorepo's workspace members are included, so a script in a sub-package is in the list without
changing directory first.

## Your own commands

Commands you add yourself sit above the ones read from manifests, because a command you wrote for
this project is usually the one you want. Team commands, where a workspace defines them, come
first of all.

## Code lens actions

Where a language server offers a runnable — a test, a binary, a benchmark — it appears in the list
too, next to the symbol it belongs to.

## Nothing in the list

The list is built from the open project's root. If the manifest lives in a sub-directory that is
not part of the workspace, open that directory as the project, or add the command yourself.
