بازگشت به نتایج جستجو

samber / AGENT SKILL

golang-spf13-cobra

فارسی + English

این اسکیل چه می‌کند؟

درخت command در Go CLI با spf13/cobra؛ cobra.Command، RunE/Run، PersistentPreRunE، Args شامل NoArgs/ExactArgs/MatchAll/custom، flag محلی/پایدار، group، ValidArgsFunction، RegisterFlagCompletionFunc، ShellCompDirective، template help/usage، docs man/Markdown و تست SetArgs/SetOut/SetErr؛ هنگام استفاده/پذیرش یا `github.com/spf13/cobra`.

ORIGINAL DESCRIPTION

Golang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage/help template customization, man-page and markdown doc generation, and testing with SetArgs/SetOut/SetErr. Apply when using or adopting spf13/cobra, or when the codebase imports `github.com/spf13/cobra`.

چه زمانی به کار می‌آید؟

در دادهٔ اصلی، کاربرد جداگانه‌ای ثبت نشده است. توضیح بالا و صفحهٔ منبع را ببینید.

کاربردهای مرتبط

برچسب‌گذاری خودکار بر اساس نام و توضیح؛ ممکن است نیازمند اصلاح باشد.