Skip to content

PqLib: Define Named Aliases Command #12

Description

@ninmonkey

in [1]:

New-PqLibFunctionAlias -Name 'B' -Value 'Write.Html.Bold'

out[1]:

B = Write.Html.Bold

in [2]:

> New-PqLibFunctionAlias @( 
   @{ Name = 'UL' ; Value = 'Write.Html.UnorderedList' }
   @{ Name = 'P' ; Value = 'Write.Html.Paragraph' }
)

out[2]:

UL = Write.Html.UnorderedList,
P = Write.Html.Paragraph

Original Example to Automate

 // optional aliases
Tag           = Write.Html.Element,
P             = Write.Html.Paragraph,
B             = Write.Html.Bold,
UL            = Write.Html.UnorderedList

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

UXUser ExperienceenhancementNew feature or requestideas

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions