-
Notifications
You must be signed in to change notification settings - Fork 154
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
Add support for Alias information to cmdlet schema #585
Comments
@sdwheeler - Thank you for adding this issue -- I'll get into the spec. |
@sdwheeler, @theJasonHelmick |
The request here is to support the metadata. It is up to the author to populate the information. This information will be used by the publishing platform. |
is there a reason why the yaml should not look like this: alias:
- windows: ls, dir
- macos: dir
- linux: dir The reason is that you likely have the same aliases for macos and linux nearly all the time: alias:
- windows: dir
- macos: ls
- linux: ls It seems like do too much to have an all - alternatively, you may want to take this approach: alias:
- dir: windows, macos, linux
- ls: macos, linux Then you might be able to argue that alias:
- dir: all
- ls: macos, linux The object model does not need to look exactly like the markdown (in some cases, that may not be a good idea) |
This is included in the Microsoft.PowerShell.PlatyPS 1.0 release. |
Reopening. This hasn't been completed yet. There are two parts to documenting aliases.
Questions:
@JamesWTruher Comments? Suggestions? |
It appears that 27d5ffe now supports this format:
|
Summary of the new feature / enhancement
As a user I need an easy way to search for cmdlet reference by the cmdlet alias.
Most cmdlet reference docs do not contain information about cmdlet aliases. If they do mention the alias, there is no standard pattern for documenting the alias. The docs platform does not have a way to search for cmdlets by alias.
Goals
New-MarkdownHelp
should create the empty template information for an author to populateProposed technical implementation details (optional)
Add YAML metadata frontmatter to list aliases by platform. For example:
Add a new H2 section after SYNOPSIS and before SYNTAX for documenting the aliases. For example:
See alias-prototype.md for a more complete example.
The text was updated successfully, but these errors were encountered: