Przejdź do głównej zawartości
AggregaAggrega
Wybierz język: Polski
Ta strona została przetłumaczona maszynowo. Przeczytaj oryginał w języku angielskim.

aggrega version

aggrega version wypisuje wersję CLI aggrega.

Wynik

Domyślnie aggrega version wypisuje czytelny dla człowieka wiersz z wersją.

Z -o json polecenie emituje obiekt czytelny maszynowo, z wcięciem dwóch spacji, w tym samym kształcie, którego każde polecenie aggrega używa dla swojego wyjścia JSON. Należy go odczytywać parserem JSON; konsument, który zamiast tego dopasowuje tekst, powinien przed dopasowaniem usunąć białe znaki, ponieważ kontraktem są nazwy pól, a otaczający je układ już nie.

{
"version": "1.2.3",
"committed": "2026-07-09T18:07:57Z",
"commit": "a1b2c3d",
"abiVersion": "v1beta1",
"goVersion": "go1.23.0",
"platform": "linux/amd64"
}

Pola pochodzą z metadanych kompilacji osadzonych w pliku binarnym. committed to znacznik czasu commita i jest obecny tylko wtedy, gdy kompilacja go zapisała. abiVersion to wersja ABI pluginów, którą obsługuje plik binarny; potok może ją odczytać, aby sprawdzić zgodność pluginów bez ładowania żadnego pluginu. Kompilacja deweloperska bez osadzonej wersji zgłasza wartość wartowniczą (taką jak (devel)), zamiast kończyć się błędem.

Kiedy używać -o json

  • Rozszerzenie edytora porównuje wersję zgłoszoną przez demona z wersją, dla której zostało zbudowane, aby wykryć niezgodny plik binarny aggrega serve, zanim zacznie nim sterować.
  • Narzędzia CI i narzędzia pochodzenia (provenance) zapisują dokładną kompilację kompilatora, która wytworzyła artefakt.

Zobacz także

Składnia

aggrega version [flags]

Opis

Print the aggrega CLI's build identity.
By default the output is a single human-readable line followed by a
one-line pointer to the plugins compiled into the binary. With
-o json, the output is a structured JSON object suitable for
programmatic consumption (the VS Code extension uses this form to
read the binary's version at activation time), in the same indented
shape every aggrega command's JSON output uses.
With --verbose, the output replaces the pointer line with a table of
the embedded plugins — type, name, served capabilities, and commit —
under a header naming the count and their shared version. With
--verbose -o json, the JSON object gains an embeddedPlugins array
carrying the same detail.
Version strings are v-less (1.0.0, not v1.0.0), homogeneous with the
version form catalog entities use. Tagged release builds report the
release version, a build stamped with a version reports that version,
and a build carrying no version stamp reports the literal "(devel)",
which marks an unreleased build.

Flagi

FlagaDomyślnieOpis
--output, -otextFormat wyjścia: text|json.
--verbosefalsedołącz do wyniku zestaw osadzonych pluginów