Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
NOME
gdcloud topic cli-trees: ajuda complementar para árvores da CLI.
DESCRIÇÃO
As árvores da CLI são dicionários aninhados estáticos que descrevem todos os grupos, comandos, flags, argumentos posicionais, texto de ajuda e caminhos de módulos de conclusão de uma CLI. Uma árvore CLI estática geralmente é muito mais rápida para carregar e acessar do que uma árvore CLI gerada em tempo de execução de uma CLI ativa. Ela também é uma representação mais compacta. Uma árvore de CLI bem formada pode ser usada para reproduzir a documentação de ajuda de uma CLI inteira.
Arquivos de dados CLI-Trees
Uma árvore da CLI é um dicionário armazenado em um arquivo JSON. Por convenção, o nome base do arquivo é o nome correspondente da CLI. Por exemplo, o nome do arquivo de árvore da CLI para a CLI gdcloud é gdcloud.json.
As árvores da CLI associadas aos módulos da CLI gdcloud são instaladas no subdiretório data/cli da raiz do diretório do pacote descompactado da CLI gdcloud.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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."]]