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 aone-line pointer to the plugins compiled into the binary. With-o json, the output is a structured JSON object suitable forprogrammatic consumption (the VS Code extension uses this form toread the binary's version at activation time), in the same indentedshape every aggrega command's JSON output uses.
With --verbose, the output replaces the pointer line with a table ofthe 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 arraycarrying the same detail.
With --licenses, the output is the third-party notices of everythingcompiled into the binary: the host and each embedded plugin, everydependency with its version, license and copyright lines, then eachlicense text once. It is printed as plain text, so --licenses cannot becombined with -o json or --verbose.
Version strings are v-less (1.0.0, not v1.0.0), homogeneous with theversion form catalog entities use. Tagged release builds report therelease 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.العلامات
| العلامة | الافتراضي | الوصف |
|---|---|---|
--licenses | false | اطبع إشعارات الأطراف الثالثة لكل ما هو مُحوَّل برمجيًا إلى الملف الثنائي |
--output, -o | text | صيغة الإخراج: text|json. |
--verbose | false | ضمِّن مجموعة المكوِّنات الإضافية المضمَّنة في الإخراج |