Lyricdev
GitHub

LYR-CLI0004

no package here or above

error · spec 14-cli

Reported by every verb about a package — build and run without a file, expand, test, bench, update, clean, metadata, add, remove — when there is no lyric.toml in the directory or any directory above it. The exit code is 2.

Explanation

A package is the directory of its lyric.toml, and the verbs look for the nearest one at or above the current directory, or above -C <dir>. Without one there is nothing to build, test or edit.

Run the command inside a package, give its directory with -C, or name a file: lyric5 build hello.lyr builds a single file as a package of its own.

Example

$ cd /tmp && lyric5 build
error[LYR-CLI0004]: no lyric.toml here or above
  = help: lyric5 build <file.lyr> builds one file alone