Skip to content

🚀 [Feature]: Short aliases for YAML conversion commands - #73

Open
Marius Storhaug (MariusStorhaug) wants to merge 2 commits into
mainfrom
issue-70-command-alias-tests
Open

🚀 [Feature]: Short aliases for YAML conversion commands#73
Marius Storhaug (MariusStorhaug) wants to merge 2 commits into
mainfrom
issue-70-command-alias-tests

Conversation

@MariusStorhaug

@MariusStorhaugMarius Storhaug (MariusStorhaug) commented Aug 7, 2026

Copy link
Copy Markdown
Member

Use cfy and cty as quick aliases for ConvertFrom-Yaml and ConvertTo-Yaml commands. These short aliases reduce typing in interactive sessions while the full command names remain available for scripts and documentation.

New: Interactive command aliases

The cfy alias converts from YAML to PowerShell objects, and cty converts from PowerShell objects to YAML. Both are fully compatible with the standard command parameters and can be used interchangeably:

# Convert YAML string to object$data=@"name: examplevalue: 123"@| cfy
# Convert object back to YAML$data| cty

The full ConvertFrom-Yaml and ConvertTo-Yaml command names continue to work unchanged for scripts and documented examples.


Technical details
  • Added cfy and cty aliases in the module manifest (PSModule.yml)
  • Aliases are exported via AliasesToExport in the module metadata
  • Built-in command conflict checks validate that aliases don't collide with existing PowerShell commands
  • Alias target mappings and manifest metadata updated in packaging configuration
  • Implementation plan progress: ClosesAdd short aliases for YAML conversion commands #70
Changed surfaceStandards checkedFramework docs checkedResult
src/** (PowerShell)Naming, FunctionsModule source layoutAligned
Relevant issues (or links)

@github-actions

github-actionsBot commented Aug 7, 2026

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITHUB_ACTIONSPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@MariusStorhaugMarius Storhaug (MariusStorhaug) changed the title Add tests for YAML conversion aliasesAdd short YAML conversion aliasesAug 7, 2026
@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review August 7, 2026 21:30
@MariusStorhaugMarius Storhaug (MariusStorhaug) changed the title Add short YAML conversion aliases🚀 [Feature]: Short aliases for YAML conversion commandsAug 8, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add short aliases for YAML conversion commands

1 participant

@MariusStorhaug