English
alta lint
Validates every chart and content file (a chart folder, a .json with a "schema", a universe folder); exit 1 on a problem.
Usage
text
alta lint [path…] [--repo] [--json] [--strict] [--game <file>]Arguments
| Name | Description | |
|---|---|---|
path… | optional | Files or folders to lint; folders are searched for charts and content files. |
Options
| Name | Type | Default | Description |
|---|---|---|---|
--repo | flag | Lint all the content of the Alta OS repository. | |
--json | flag | Print the report as JSON (alta.check/1). | |
--strict | flag | Treat warnings as errors. | |
--game | string | Default: the repository's game | The game file to check quest packs against. |
Exit codes
| Name | Description |
|---|---|
0 | ok |
1 | problems found |
2 | bad usage |
3 | not in this version |
Examples
Lint a chart
Terminal
sh
alta lint my-agentOutput
text
ok my-agent (chart)
warning: source: The source still holds placeholders (zeros). [chart.source-placeholder]
fix: Replace them with the commit git prints and the digest alta package prints.
docs: https://docs.os.altasystem.ai/reference/errors#chart-source-placeholder
1 checked, 0 errors, 1 warningWarnings fail too
Terminal
sh
alta lint my-agent --strictOutput · exit 1
text
FAIL my-agent (chart)
warning: source: The source still holds placeholders (zeros). [chart.source-placeholder]
fix: Replace them with the commit git prints and the digest alta package prints.
docs: https://docs.os.altasystem.ai/reference/errors#chart-source-placeholder
1 checked, 0 errors, 1 warning