Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
NAMA
gdcloud topic cli-trees - Supplementary help for CLI trees.
DESKRIPSI
Struktur CLI adalah kamus bertingkat statis yang menjelaskan semua grup, perintah, flag, posisi, teks bantuan, dan jalur modul pelengkap untuk CLI. Pohon CLI statis sering kali jauh lebih cepat dimuat dan diakses daripada pohon CLI yang dibuat saat runtime dari CLI aktif. Ini juga merupakan representasi yang lebih ringkas. Struktur CLI yang terbentuk dengan benar dapat digunakan untuk mereproduksi dokumentasi bantuan untuk seluruh CLI.
File Data CLI-Trees
Struktur CLI adalah kamus yang disimpan dalam file JSON. Berdasarkan konvensi, nama dasar file adalah nama CLI yang sesuai. Misalnya, nama file struktur CLI untuk gdcloud CLI adalah gdcloud.json.
Struktur CLI yang terkait dengan modul gdcloud CLI diinstal di subdirektori data/cli dari root direktori paket gdcloud CLI yang belum di-unzip.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\u003cp\u003eCLI trees are static, nested dictionaries that define a CLI's structure, including commands, flags, and help text.\u003c/p\u003e\n"],["\u003cp\u003eThey are faster to load and access compared to runtime-generated CLI trees and represent the information in a more compact format.\u003c/p\u003e\n"],["\u003cp\u003eCLI trees are stored as JSON files, with the filename typically matching the corresponding CLI name (e.g., \u003ccode\u003egdcloud.json\u003c/code\u003e for the gdcloud CLI).\u003c/p\u003e\n"],["\u003cp\u003eThe gdcloud CLI tree is located in the \u003ccode\u003edata/cli\u003c/code\u003e subdirectory within the unzipped gdcloud CLI bundle, yet the gdcloud CLI does not require this file to run.\u003c/p\u003e\n"]]],[],null,["# gdcloud topic cli-trees\n\nNAME\n----\n\ngdcloud topic cli-trees - Supplementary help for CLI trees.\n\nDESCRIPTION\n-----------\n\nCLI trees are static nested dictionaries that describe all groups, commands, flags, positionals, help text, and completer module paths for a CLI. A static CLI tree is often much faster to load and access than a CLI tree generated at runtime from an active CLI. It is also a more compact representation. A properly formed CLI tree can be used to reproduce the help documentation for an entire CLI.\n\nCLI-Trees Data Files\n--------------------\n\nA CLI tree is a dictionary stored in a JSON file. By convention, the file base name is the corresponding CLI name. For example, the CLI tree file name for the gdcloud CLI is `gdcloud.json`.\nCLI trees associated with gdcloud CLI modules are installed in the `data/cli` subdirectory of the root of the unzipped gdcloud CLI bundle directory. \n\n \u003cUNZIPPED_CLI_DIR_PATH\u003e/google-distributed-cloud-hosted-cli/data/cli/gdcloud.json\n\nThis file contains tree data for the gdcloud CLI. Note that the gdcloud CLI does not require this CLI tree to run."]]