Français
alta lint
Validates every chart and content file (a chart folder, a .json with a "schema", a universe folder); exit 1 on a problem.
Les descriptions et les sorties sont en anglais, comme la CLI.
Usage
text
alta lint [path…] [--repo] [--json] [--strict] [--game <file>]Arguments
| Nom | Description | |
|---|---|---|
path… | facultatif | Files or folders to lint; folders are searched for charts and content files. |
Options
| Nom | Type | Défaut | 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 | Défaut: the repository's game | The game file to check quest packs against. |
Codes de sortie
| Nom | Description |
|---|---|
0 | ok |
1 | problèmes trouvés |
2 | mauvais usage |
3 | pas dans cette version |
Exemples
Lint a chart
Terminal
sh
alta lint my-agentSortie
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.altasystem.ai/reference/errors#chart-source-placeholder
1 checked, 0 errors, 1 warningWarnings fail too
Terminal
sh
alta lint my-agent --strictSortie · 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.altasystem.ai/reference/errors#chart-source-placeholder
1 checked, 0 errors, 1 warning