Skip to content

Commit 67bab64

Browse files
committed
✨ [feat] Enhances module with new scripts and features
Adds new color scripts and enhances module functionalities. - 🎨 Adds 27 new color scripts, expanding the collection and artistic diversity. - The scripts cover a range of themes like cosmic mandalas, crystal lattices, and psychedelic vortexes. - ⚑ Improves performance by optimizing the caching system. - The module now includes 222 colorscripts, up from 195. - πŸ“ Updates documentation to reflect the increased number of color scripts and new features. - πŸ‘· Modifies the publish workflow to consolidate validation and publishing into a single job. - This change simplifies the release process and reduces redundancy. - βž• Adds a `ReturnText` parameter to `Show-ColorScript`, allowing the rendered output to be captured as text. Signed-off-by: Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com>
1 parent 9cbce28 commit 67bab64

34 files changed

Lines changed: 2663 additions & 90 deletions

β€Ž.github/workflows/publish.ymlβ€Ž

Lines changed: 14 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,16 @@ permissions:
4040
contents: write
4141

4242
jobs:
43-
validate:
44-
name: Validate module
43+
validate-and-publish:
44+
name: Validate and Publish
4545
runs-on: windows-latest
46-
outputs:
47-
version: ${{ steps.manifest.outputs.version }}
46+
env:
47+
PSGALLERYAPIKEY: ${{ secrets.PSGALLERYAPIKEY }}
48+
NUGETAPIKEY: ${{ secrets.NUGETAPIKEY }}
49+
PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
50+
PUBLISH_TO_NUGET_INPUT: ${{ github.event.inputs.publishToNuGet }}
51+
PUBLISH_TO_GITHUB_INPUT: ${{ github.event.inputs.publishToGitHub }}
52+
CREATE_RELEASE_INPUT: ${{ github.event.inputs.createRelease }}
4853
steps:
4954
- name: Harden the runner (Audit all outbound calls)
5055
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -145,57 +150,17 @@ jobs:
145150
}
146151
}
147152
148-
- name: Upload module artifact
149-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
150-
with:
151-
name: module-source
152-
path: ColorScripts-Enhanced/
153-
154-
create-release:
155-
name: Create GitHub Release
156-
needs: validate
157-
runs-on: ubuntu-latest
158-
steps:
159-
- name: Harden the runner (Audit all outbound calls)
160-
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
161-
with:
162-
egress-policy: audit
163-
164-
- name: Checkout
165-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
166-
167-
- name: Create Release
153+
- name: Create GitHub Release
154+
if: ${{ github.event_name != 'workflow_dispatch' || env.CREATE_RELEASE_INPUT != 'false' }}
168155
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
169156
with:
170-
tag: v${{ needs.validate.outputs.version }}
171-
name: Release v${{ needs.validate.outputs.version }}
157+
tag: v${{ steps.manifest.outputs.version }}
158+
name: Release v${{ steps.manifest.outputs.version }}
172159
draft: false
173160
prerelease: false
174161
generateReleaseNotes: true
175162
skipIfReleaseExists: true
176163

177-
publish:
178-
name: Publish
179-
needs:
180-
- validate
181-
- create-release
182-
runs-on: windows-latest
183-
env:
184-
PSGALLERYAPIKEY: ${{ secrets.PSGALLERYAPIKEY }}
185-
NUGETAPIKEY: ${{ secrets.NUGETAPIKEY }}
186-
PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
187-
PUBLISH_TO_NUGET_INPUT: ${{ github.event.inputs.publishToNuGet }}
188-
PUBLISH_TO_GITHUB_INPUT: ${{ github.event.inputs.publishToGitHub }}
189-
MODULE_VERSION: ${{ needs.validate.outputs.version }}
190-
steps:
191-
- name: Harden the runner (Audit all outbound calls)
192-
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
193-
with:
194-
egress-policy: audit
195-
196-
- name: Checkout
197-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
198-
199164
- name: Package module
200165
id: package
201166
run: |
@@ -267,6 +232,7 @@ jobs:
267232
shell: pwsh
268233

269234
- name: Publish to GitHub Packages
235+
if: ${{ env.PACKAGES_TOKEN != '' && (github.event_name != 'workflow_dispatch' || env.PUBLISH_TO_GITHUB_INPUT != 'false') }}
270236
run: |
271237
$packagePath = '${{ steps.package.outputs.packagePath }}'
272238
if (-not (Test-Path $packagePath)) {

β€ŽColorScripts-Enhanced/ColorScripts-Enhanced.psd1β€Ž

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'ColorScripts-Enhanced.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '2025.10.11.1624'
14+
ModuleVersion = '2025.10.11.2020'
1515

1616
# Supported PSEditions
1717
CompatiblePSEditions = @('Desktop', 'Core')
@@ -107,10 +107,22 @@
107107
'Performance'
108108
'PowerShell'
109109
'Startup'
110-
'Terminal Startup'
111-
'ANSI Art'
112-
'Colorful Terminal'
113-
'PowerShell Art'
110+
'Terminal-Startup'
111+
'ANSI-Art'
112+
'Colorful-Terminal'
113+
'PowerShell-Art'
114+
'Fancy-Terminal'
115+
'Terminal-Enhancement'
116+
'Beautiful-Terminal'
117+
'Terminal-Colors'
118+
'PowerShell-Scripts'
119+
'Terminal-Art'
120+
'Colorful-Scripts'
121+
'Enhanced-Terminal'
122+
'Terminal-Visuals'
123+
'PowerShell-Module'
124+
'Colorful-Output'
125+
'Terminal-Themes'
114126
)
115127

116128
# A URL to the license for this module.
@@ -124,12 +136,12 @@
124136

125137
# ReleaseNotes of this module
126138
ReleaseNotes = @'
127-
Version 2025.10.11.1624:
139+
Version 2025.10.11.2020:
128140
- Enhanced caching system with OS-wide cache in AppData
129141
- 6-19x performance improvement
130142
- Cache stored in centralized location
131143
- Works from any directory
132-
- 195+ beautiful colorscripts included
144+
- 222+ beautiful colorscripts included
133145
- Full comment-based help documentation
134146
- Scripts optimized for performance and visual quality
135147
'@

β€ŽColorScripts-Enhanced/README.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A high-performance PowerShell module for displaying beautiful ANSI colorscripts
1212

1313
## Features
1414

15-
✨ **195+ Beautiful Colorscripts** - Extensive collection of ANSI art
15+
✨ **222+ Beautiful Colorscripts** - Extensive collection of ANSI art
1616

1717
⚑ **Intelligent Caching** - 6-19x performance improvement (5-20ms load times)
1818

@@ -387,7 +387,7 @@ $env:APPDATA\ColorScripts-Enhanced\cache
387387
- One `.cache` file per colorscript
388388
- Contains pre-rendered ANSI output
389389
- Average size: ~20KB per file
390-
- Total size: ~3.9MB for all 195 scripts
390+
- Total size: ~3.9MB for all 222 scripts
391391

392392
## Examples
393393

@@ -421,7 +421,7 @@ Build-ColorScriptCache
421421

422422
## Available Colorscripts
423423

424-
The module includes 195 colorscripts including:
424+
The module includes 222 colorscripts including:
425425

426426
- **Fractals**: mandelbrot-zoom, julia-morphing, barnsley-fern, koch-snowflake
427427
- **Patterns**: kaleidoscope, wave-pattern, rainbow-waves, gradient-bars
@@ -518,7 +518,7 @@ ColorScripts-Enhanced/
518518
└── cache/ # Cache files
519519
β”œβ”€β”€ bars.cache
520520
β”œβ”€β”€ hearts.cache
521-
└── ... (195 total)
521+
└── ... (222 total)
522522
```
523523

524524
## Contributing

0 commit comments

Comments
Β (0)