Skip to content
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

Override formatting #29

Open
geowa4 opened this issue Feb 12, 2017 · 0 comments
Open

Override formatting #29

geowa4 opened this issue Feb 12, 2017 · 0 comments

Comments

@geowa4
Copy link
Contributor

geowa4 commented Feb 12, 2017

Skills can optionally define their output's formatting. Sometimes, the output doesn't quite match what the original author intended or maybe it's just better viewed by a user in another format. To override the default formatting, the command's output is piped (a la Bash) to a formatting skill whose noun matches the available options in the skill definition. Assuming values to "format" as "pre", "json", and "table", the skills must be Format-Pre, Format-JSON, and Format-Table. As with all skills, case doesn't matter.

Assuming List-Skills defaults to JSON formatting, List-Skills | Format-Table will instead render the list of objects as a table. List-Skills | Format-JSON will be equivalent to the default. List-Skills | Format-Pre will print dense JSON.

@geowa4 geowa4 mentioned this issue Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant