Aller au contenu
En Markdown

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 ​

NomDescription
path…facultatifFiles or folders to lint; folders are searched for charts and content files.

Options ​

NomTypeDéfautDescription
--repoflagLint all the content of the Alta OS repository.
--jsonflagPrint the report as JSON (alta.check/1).
--strictflagTreat warnings as errors.
--gamestringDéfaut: the repository's gameThe game file to check quest packs against.

Codes de sortie ​

NomDescription
0ok
1problèmes trouvés
2mauvais usage
3pas dans cette version

Exemples ​

Lint a chart

Terminal
sh
alta lint my-agent
Sortie
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 warning

Warnings fail too

Terminal
sh
alta lint my-agent --strict
Sortie · 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

Voir aussi ​

Le standard, le SDK et la CLI sont sous Apache-2.0 ; Alta System OS et Alta World sous FSL-1.1-ALv2.