-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop tree.json #409
base: dev
Are you sure you want to change the base?
Drop tree.json #409
Conversation
# Conflicts: # src/web/src/views/cli/CLIModGeneratorProfileCommandTree.tsx # src/web/src/views/cli/CLIModGeneratorProfileTabs.tsx # src/web/src/views/cli/CLIModuleGenerator.tsx
elif line and not cur_sub_block and not short_help: | ||
short_help = line | ||
elif line and not cur_sub_block and not long_help and prev_line: | ||
short_help = short_help + '\n' + line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here suppose the short help contains multiple lines, did you find any case has multiple lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed my code and find one example:
Commands\large-instance_create.md
# [Command] _large-instance create_
Create an Azure Large Instance for the specified subscription,
resource group, and instance name.
## Versions
### [2024-08-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5henVyZWxhcmdlaW5zdGFuY2UvYXp1cmVsYXJnZWluc3RhbmNlcy97fQ==/2024-08-01-preview.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{} 2024-08-01-preview -->
#### examples
- Create an Azure Large Storage Instance
```bash
large-instance create -g myResourceGroup -n myALInstance -l westus -sku S72
```
Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com>
Description
The tree.json file is growing bigger and will cause problem for git command one day. So it is required to drop tree.json file in git repo and generate it only in local cache.
The PR dropping
tree.json
in aaz model: Azure/aaz#615Backend
CMDSpecsPartialCommandTree
to support partial commands and command groups management.__getitem__
method ofCMDSpecsCommandDict
andCMDSpecsCommandGroupDict
, support similar interface of PartialCommandTree and a full CommandTree./AAZ/Specs/CommandTree/Simple
to get a simplified tree from folder structure./AAZ/Specs/CommandTree/Nodes/Leaves
to batched get command leaves.Frontend
CLIModGeneratorProfileCommandTree
. Change it from class component to function component.ModGenerator
.selected
toProfileCTCommand
andProfileCTCommandGroup
to mark selection state no matter it is loaded or not.ProfileCommandTree
to object instead of list.