تخطَّ إلى المحتوى
AggregaAggregaAggregaAggrega
اختر لغة: العربية
تُرجمت هذه الصفحة آليًا. اقرأ الأصل الإنجليزي.

aggrega version

يطبع aggrega version إصدار CLI الخاص بالأمر aggrega.

الإخراج

يطبع aggrega version افتراضيًا سطر إصدار مقروءًا للبشر.

مع -o json يُصدر كائنًا مقروءًا آليًا، بإزاحة مسافتين، بالشكل نفسه الذي يستخدمه كل أمر aggrega لإخراج JSON. اقرأه بمحلِّل JSON؛ ويجب على مستهلك يطابق على النص بدلًا من ذلك أن يزيل المسافات البيضاء قبل المطابقة، لأن أسماء الحقول هي العقد وتخطيط ما حولها ليس كذلك.

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

تأتي الحقول من البيانات الوصفية للبناء المضمَّنة في الملف الثنائي. يمثل committed الطابع الزمني للإيداع، ولا يوجد إلا حين سجّل البناء واحدًا. ويمثل abiVersion إصدار ABI للمكوِّنات الإضافية الذي يتحدثه الملف الثنائي، ويمكن لخط معالجة أن يقرأه للتحقق من توافق المكوِّنات الإضافية من دون تحميل مكوِّن إضافي. ويبلّغ بناء تطوير لا يحمل إصدارًا مضمَّنًا عن قيمة sentinel (مثل (devel)) بدلًا من أن يفشل.

متى تستخدم -o json

  • يقارن امتداد المحرر الإصدار الذي يبلّغ عنه daemon بالإصدار الذي بُني من أجله، ليكتشف ملفًا ثنائيًا غير متوافق للأمر aggrega serve قبل أن يقوده.
  • تسجل أدوات CI وأدوات تتبع المنشأ بناء المحوِّل البرمجي الدقيق الذي أصدر مُخرَجًا.

انظر أيضًا

  • ./aggrega-serve.md — daemon الذي يتحقق عميل من توافق إصداره.

الصيغة العامة

aggrega version [flags]

الوصف

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.
With --licenses, the output is the third-party notices of everything
compiled into the binary: the host and each embedded plugin, every
dependency with its version, license and copyright lines, then each
license text once. It is printed as plain text, so --licenses cannot be
combined with -o json or --verbose.
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.

العلامات

العلامةالافتراضيالوصف
--licensesfalseاطبع إشعارات الأطراف الثالثة لكل ما هو مُحوَّل برمجيًا إلى الملف الثنائي
--output, -otextصيغة الإخراج: text|json.
--verbosefalseضمِّن مجموعة المكوِّنات الإضافية المضمَّنة في الإخراج