Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
NOM
gdcloud topic cli-trees : aide supplémentaire pour les arborescences CLI.
DESCRIPTION
Les arborescences CLI sont des dictionnaires imbriqués statiques qui décrivent tous les groupes, commandes, indicateurs, arguments positionnels, textes d'aide et chemins de module de complément pour une CLI. Un arbre CLI statique est souvent beaucoup plus rapide à charger et à accéder qu'un arbre CLI généré au moment de l'exécution à partir d'une CLI active. Il s'agit également d'une représentation plus compacte. Un arbre CLI correctement formé peut être utilisé pour reproduire la documentation d'aide d'une CLI entière.
Fichiers de données CLI-Trees
Un arbre CLI est un dictionnaire stocké dans un fichier JSON. Par convention, le nom de base du fichier correspond au nom de CLI. Par exemple, le nom du fichier d'arborescence de la CLI pour gdcloud CLI est gdcloud.json.
Les arborescences CLI associées aux modules gdcloud CLI sont installées dans le sous-répertoire data/cli de la racine du répertoire du bundle gdcloud CLI décompressé.
Ce fichier contient des données d'arborescence pour la CLI gdcloud. Notez que la CLI gdcloud n'a pas besoin de cet arbre CLI pour s'exécuter.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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."]]