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

Emoji 0.1.1 #29

Merged
merged 47 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
925550b
feat: Search/Find-Emoji Support for multiple patterns ( Fixes #15 )
Feb 21, 2024
90eb672
feat: Search/Find-Emoji Support for multiple patterns ( Fixes #15 )
Feb 21, 2024
2e5597f
feat: Search/Find-Emoji -Word ( Fixes #16 )
Feb 21, 2024
ae26c80
feat: Search/Find-Emoji -Word ( Fixes #16 )
Feb 21, 2024
5910a10
feat: Emoji.get_Blocks ( Fixes #17 )
Feb 21, 2024
b48ccf7
feat: Emoji.get_Blocks ( Fixes #17 )
Feb 21, 2024
38d9f6f
feat: Emoji.Block.get_Start ( Fixes #19 )
Feb 21, 2024
1ebe90d
feat: Emoji.Block.get_Start ( Fixes #19 )
Feb 21, 2024
6decfd0
feat: Emoji.Block.get_End ( Fixes #20 )
Feb 21, 2024
6a68f45
feat: Emoji.Block.get_End ( Fixes #20 )
Feb 21, 2024
a70e11a
feat: Emoji.Block.get_Length ( Fixes #21 )
Feb 21, 2024
c49397f
feat: Emoji.Block.get_Length ( Fixes #21 )
Feb 21, 2024
3d24661
feat: Emoji.Block.get_Range ( Fixes #22 )
Feb 21, 2024
c3bc416
feat: Emoji.Block.get_Range ( Fixes #22 )
Feb 21, 2024
1c803b8
feat: Emoji.Get -Block ( Fixes #23 )
Feb 21, 2024
2327dc7
feat: Emoji.Get -Block ( Fixes #23 )
Feb 21, 2024
b0856cb
feat: Emoji.Get -Block ( Fixes #23 )
Feb 21, 2024
2d8b8fd
feat: Emoji.Block formatting ( Fixes #24 )
Feb 21, 2024
73465fe
feat: Emoji.Block formatting ( Fixes #24 )
Feb 21, 2024
f45cc24
feat: Emoji.Block formatting ( Fixes #24 )
Feb 21, 2024
586eccb
feat: Emoji.Get -Block ( Fixes #23 )
Feb 21, 2024
795e257
feat: Emoji.Get -Block ( Fixes #23 )
Feb 21, 2024
d4259ee
feat: Emoji.Get -Block ( Fixes #23 )
Feb 21, 2024
e9b9121
feat: Emoji.Get -Block ( Fixes #23 )
Feb 21, 2024
7f884a0
feat: Emoji.Get -Block ( Fixes #23 )
Feb 21, 2024
af530de
Merge branch 'More-Emoji' of https://github.com/StartAutomating/Emoji…
Feb 21, 2024
705dfaa
feat: Emoji SupportsSupportProcess/SupportsPaging ( Fixes #25 )
Feb 21, 2024
de8c97c
feat: Emoji SupportsSupportProcess/SupportsPaging ( Fixes #25 )
Feb 21, 2024
634e743
feat: Get-Emoji -First/-Skip ( Fixes #26 )
Feb 21, 2024
16e2fce
feat: Get-Emoji -First/-Skip ( Fixes #26 )
Feb 21, 2024
c661f5b
feat: Get-Emoji -First/-Skip ( Fixes #26 )
Feb 21, 2024
3ccdf9e
feat: Emoji Inner Splatting Guard ( Fixes #27 )
Feb 21, 2024
dad357d
feat: Emoji Inner Splatting Guard ( Fixes #27 )
Feb 21, 2024
b529949
feat: Get-Emoji -First/-Skip ( Fixes #26 )
Feb 21, 2024
a77be1e
feat: Get-Emoji -First/-Skip ( Fixes #26 )
Feb 21, 2024
e2f3a65
feat: Get-Emoji -First/-Skip ( Fixes #26 )
Feb 21, 2024
3e01229
feat: Get-Emoji -First/-Skip ( Fixes #26 )
Feb 21, 2024
c6ddba6
feat: Get-Emoji -First/-Skip ( Fixes #26 )
Feb 21, 2024
8af2fb4
feat: Get-Emoji -First/-Skip ( Fixes #26 )
Feb 21, 2024
51015df
feat: Emoji Command SupportsPaging Propagation ( Fixes #25, Fixes #27 )
Feb 21, 2024
c1033b3
feat: Emoji Command SupportsPaging Propagation ( Fixes #25, Fixes #27 )
Feb 21, 2024
6882ef1
feat: Emoji Logo ( Fixes #28 )
Feb 21, 2024
5ca87a7
feat: Emoji Logo ( Fixes #28 )
Feb 21, 2024
83579da
feat: Emoji Logo ( Fixes #28 )
Feb 21, 2024
f8324b9
feat: Emoji Logo ( Fixes #28 )
Feb 21, 2024
fe67e8f
feat: Emoji Logo ( Fixes #28 )
Feb 21, 2024
88b5142
release: Updating Module Version [0.1.1] and Changelog
Feb 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Assets/Emoji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions Assets/Emoji.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions Build/Emoji.PSSVG.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#requires -Module PSSVG

$AssetsPath = $PSScriptRoot | Split-Path | Join-Path -ChildPath "Assets"

if (-not (Test-Path $AssetsPath)) {
New-Item -ItemType Directory -Path $AssetsPath | Out-Null
}

$fontName = 'Anta'
$fontName = 'Heebo'
$fontName = 'Noto Sans'

svg -content $(
$commonParameters = [Ordered]@{
Fill = '#4488FF'
# Stroke = 'black'
# StrokeWidth = '0.05'
}

SVG.GoogleFont -FontName $fontName

svg.symbol -Id psChevron -Content @(
svg.polygon -Points (@(
"40,20"
"45,20"
"60,50"
"35,80"
"32.5,80"
"55,50"
) -join ' ')
) -ViewBox 100, 100


svg.use -Href '#psChevron' -X -45% -Y 37.5% @commonParameters -Height 25% -Opacity .9
svg.text -Text 'emoji' -X 50% -Y 50% -FontSize 4em -FontFamily sans-serif @commonParameters -DominantBaseline 'middle' -TextAnchor 'middle' -Style "font-family:'$fontName'"
svg.text -Text '😎😉😍🥰🤔😟' -X 50% -Y 80% -FontSize .5em @commonParameters -DominantBaseline 'middle' -TextAnchor 'middle'
) -ViewBox 0, 0, 200, 100 -OutputPath $(
Join-Path $assetsPath Emoji.svg
)

17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## Emoji 0.1.1:

### More Emoji

* Find/Search-Emoji improvements:
* Supporting Multiple -Patterns (#15 ) (thanks @I-Am-Jakoby !)
* Supporting -Word (#16)
* Get-Emoji:
* Get-Emoji -Block (#23)
* Get-Emoji -First/-Skip (#26)
* Emoji Block Support:
* `Emoji.get_Blocks` (#17)
* Emoji.Block pseudotype (#18, #19, #20, #21, #22)
* Added Logo (#28)

---

## Emoji 0.1:

### Initial Release of Emoji
Expand Down
21 changes: 19 additions & 2 deletions Commands/All-Emoji.ps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Emoji
'Find-Emoji', 'Search-Emoji',
'Import-Emoji', 'Export-Emoji'
)]
[CmdletBinding(PositionalBinding=$false)]
[CmdletBinding(PositionalBinding=$false,SupportsShouldProcess,SupportsPaging)]
param()

dynamicParam {
Expand Down Expand Up @@ -76,6 +76,23 @@ function Emoji
$typeDataForVerb = $nounTypeData.Members[$typeDataForVerb.ReferencedMemberName]
}
if (-not $typeDataForVerb) { return }
& $typeDataForVerb.Script @PSBoundParameters
$parametersForScript = [Ordered]@{} + $PSBoundParameters
$function:InnerCommand = $typeDataForVerb.Script
$innerCommandMetadata = $ExecutionContext.SessionState.InvokeCommand.GetCommand('InnerCommand','Function') -as
[Management.Automation.CommandMetadata]
foreach ($parameterName in @($parametersForScript.Keys)) {
if (-not $innerCommandMetadata.Parameters[$parameterName]) {
$parametersForScript.Remove($parameterName)
}
}
if ($innerCommandMetadata.SupportsPaging) {
if ($PSBoundParameters.First) {
$parametersForScript.First = $PSBoundParameters.First
}
if ($PSBoundParameters.Skip) {
$parametersForScript.Skip = $PSBoundParameters.Skip
}
}
& $typeDataForVerb.Script @parametersForScript
}
}
21 changes: 19 additions & 2 deletions Commands/All-Emoji.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Emoji {
'Find-Emoji', 'Search-Emoji',
'Import-Emoji', 'Export-Emoji'
)]
[CmdletBinding(PositionalBinding=$false)]
[CmdletBinding(PositionalBinding=$false,SupportsShouldProcess,SupportsPaging)]
param()

dynamicParam {
Expand Down Expand Up @@ -76,7 +76,24 @@ function Emoji {
$typeDataForVerb = $nounTypeData.Members[$typeDataForVerb.ReferencedMemberName]
}
if (-not $typeDataForVerb) { return }
& $typeDataForVerb.Script @PSBoundParameters
$parametersForScript = [Ordered]@{} + $PSBoundParameters
$function:InnerCommand = $typeDataForVerb.Script
$innerCommandMetadata = $ExecutionContext.SessionState.InvokeCommand.GetCommand('InnerCommand','Function') -as
[Management.Automation.CommandMetadata]
foreach ($parameterName in @($parametersForScript.Keys)) {
if (-not $innerCommandMetadata.Parameters[$parameterName]) {
$parametersForScript.Remove($parameterName)
}
}
if ($innerCommandMetadata.SupportsPaging) {
if ($PSBoundParameters.First) {
$parametersForScript.First = $PSBoundParameters.First
}
if ($PSBoundParameters.Skip) {
$parametersForScript.Skip = $PSBoundParameters.Skip
}
}
& $typeDataForVerb.Script @parametersForScript
}

}
Expand Down
35 changes: 35 additions & 0 deletions Emoji.format.ps1xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
<!-- Generated with EZOut 2.0.4: Install-Module EZOut or https://github.com/StartAutomating/EZOut -->
<Configuration>
<ViewDefinitions>
<View>
<Name>Emoji.Block</Name>
<ViewSelectedBy>
<TypeName>Emoji.Block</TypeName>
</ViewSelectedBy>
<TableControl>
<AutoSize />
<TableHeaders>
<TableColumnHeader>
<Alignment>Right</Alignment>
</TableColumnHeader>
<TableColumnHeader>
<Alignment>Center</Alignment>
</TableColumnHeader>
<TableColumnHeader>
<Alignment>Left</Alignment>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>Start</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>BlockName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>End</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Emoji.Symbol</Name>
<ViewSelectedBy>
Expand Down
30 changes: 14 additions & 16 deletions Emoji.psd1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{

Check warning on line 1 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSUseBOMForUnicodeEncodedFile : Missing BOM encoding for non-ASCII encoded file 'Emoji.psd1'

Check warning on line 1 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSUseBOMForUnicodeEncodedFile : Missing BOM encoding for non-ASCII encoded file 'Emoji.psd1'
ModuleVersion = '0.1'
ModuleVersion = '0.1.1'
RootModule = 'Emoji.psm1'

Check warning on line 4 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSAvoidTrailingWhitespace : Line has trailing whitespace

Check warning on line 4 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSAvoidTrailingWhitespace : Line has trailing whitespace
Description = '⟩⚡PowerShell Emoji 😎😉😍🥰🤔😟'
Expand All @@ -18,23 +18,21 @@
LicenseURI = 'https://github.com/StartAutomating/blob/main/LICENSE'
Tags = 'Emoji', 'PowerShell'
ReleaseNotes = @'
Initial Release of Emoji:
## Emoji 0.1.1:

* Emoji is PowerShell Module for Emoji (#1)
* It is built from the [Unicode Character Dataset](https://unicode.org/Public/UCD/latest/ucd/), using [PipeScript](https://github.com/StartAutomating/PipeScript) (#2)
* It builds an object model around Emoji, using [EZOut](https://github.com/StartAutomating/EZOut)
* That model is used as the basis for a single command, `Emoji` (#4)
* The `Emoji` function can be accessed with several verbs:
* Import-Emoji imports (#5)
* Find/Search-Emoji searches loaded emoji (#6)
* Get-Emoji gets emoji (#7)
* Set-Emoji sets variables or functions (#8)
* Export-Emoji exports named characters (#13)
* `Emoji.Symbol` types make each emoji nicer to work with:
* By formatting nicely (#10)
* By adding a ScriptProperty, .Number (#11)
* By aliasing an AliasProperty, .Emoji (#12)
### More Emoji

* Find/Search-Emoji improvements:
* Supporting Multiple -Patterns (#15 ) (thanks @I-Am-Jakoby !)

Check warning on line 26 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSAvoidTrailingWhitespace : Line has trailing whitespace

Check warning on line 26 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSAvoidTrailingWhitespace : Line has trailing whitespace
* Supporting -Word (#16)
* Get-Emoji:
* Get-Emoji -Block (#23)
* Get-Emoji -First/-Skip (#26)
* Emoji Block Support:
* `Emoji.get_Blocks` (#17)

Check warning on line 32 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSAvoidTrailingWhitespace : Line has trailing whitespace

Check warning on line 32 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSAvoidTrailingWhitespace : Line has trailing whitespace
* Emoji.Block pseudotype (#18, #19, #20, #21, #22)
* Added Logo (#28)

Check warning on line 35 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSAvoidTrailingWhitespace : Line has trailing whitespace

Check warning on line 35 in Emoji.psd1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSAvoidTrailingWhitespace : Line has trailing whitespace
---

Full history in [CHANGELOG](https://github.com/StartAutomating/Emoji/blob/main/CHANGELOG.md)
Expand Down
Loading
Loading