Skip to content

Commit ba3db97

Browse files
At0mFlowAt0mFlow
authored andcommitted
feat: add Orbit console mascot
1 parent 485d6b3 commit ba3db97

5 files changed

Lines changed: 61 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ excluded by default.
5353

5454
## What the console shows
5555

56+
Interactive runs open with the full [Orbit console mascot](src/At0mFlow.ScriptAudit/Orbit.Console.txt)
57+
above the At0mFlow wordmark. The sample below starts at the wordmark.
58+
5659
```text
57-
========================================================================
60+
==================================================================================================
5861
5962
█████╗ ████████╗ ██████╗ ███╗ ███╗███████╗██╗ ██████╗ ██╗ ██╗
6063
██╔══██╗╚══██╔══╝██╔═████╗████╗ ████║██╔════╝██║ ██╔═══██╗██║ ██║
@@ -70,7 +73,7 @@ excluded by default.
7073
7174
https://at0mflow.com
7275
73-
========================================================================
76+
==================================================================================================
7477
7578
At0mFlow Script Audit
7679
Computers: 2

‎src/At0mFlow.ScriptAudit/At0mFlow.ScriptAudit.psd1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@{
22
RootModule = 'At0mFlow.ScriptAudit.psm1'
3-
ModuleVersion = '1.1.1'
3+
ModuleVersion = '1.1.2'
44
GUID = 'd921fc68-4eb8-4b52-a036-7589f420df49'
55
Author = 'At0mFlow'
66
CompanyName = 'At0mFlow'

‎src/At0mFlow.ScriptAudit/At0mFlow.ScriptAudit.psm1‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ function Write-At0mFlowWordmark {
612612
[CmdletBinding()]
613613
param()
614614

615+
$orbitLines = @(Get-Content -LiteralPath (Join-Path $PSScriptRoot 'Orbit.Console.txt'))
615616
$logoLines = @(
616617
' #####> ########> ######> ###> ###>#######>##> ######> ##> ##>'
617618
' ##<--##>[--##<--]##<-####>####> ####|##<----]##| ##<---##>##| ##|'
@@ -630,7 +631,11 @@ function Write-At0mFlowWordmark {
630631
'|' = [char] 0x2551
631632
}
632633

633-
Write-Host '========================================================================' -ForegroundColor DarkGray
634+
Write-Host ('=' * 98) -ForegroundColor DarkGray
635+
Write-Host ''
636+
foreach ($orbitLine in $orbitLines) {
637+
Write-Host $orbitLine -ForegroundColor Green
638+
}
634639
Write-Host ''
635640
foreach ($logoLine in $logoLines) {
636641
$renderedLogoLine = $logoLine
@@ -650,7 +655,7 @@ function Write-At0mFlowWordmark {
650655
Write-Host ''
651656
Write-Host ' https://at0mflow.com' -ForegroundColor DarkCyan
652657
Write-Host ''
653-
Write-Host '========================================================================' -ForegroundColor DarkGray
658+
Write-Host ('=' * 98) -ForegroundColor DarkGray
654659
}
655660

656661
function Invoke-At0mFlowScriptAudit {
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@@@@@@
2+
@@=::=%@
3+
@@=--=%@
4+
@@@@@@
5+
@@@@
6+
@@@@@@@
7+
@@@@@@@@@@@@@@@@@@@@@@@@@@
8+
@@@@###**+==*#************##+*#@@
9+
@@@=:::.........=##************#:.::%@@
10+
@%*:.................=************:.....-%@
11+
@@*-...........::::::::::::::::::::::::::::.+#@
12+
@#:.........:---:..........................:--:=@@
13+
@%#.........-:....+#########################*..:+@@
14+
@@=........:-...-%%@@@@@@@@@@@@@@@@@@@@@@@@@@@#=..=%@
15+
@@+----:...:-.=#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#+.=%@
16+
@@%####+--..:-.=%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+.-%@
17+
@@@%%%%##*=-::-.=%@@@@@@%+--*%@@@@@@@@@@%=--%@@@@@%+.-%@
18+
@@@@@@@@%##+::-.=%@@@@@*=----=#%@@@@@@%*-----+#@@@%+.-%@
19+
@@#+++-...*%#*-:-.=%@@@@@-------=%@@@@@@#-------+@@@%+.-%@@@
20+
@@%#******+:..-##-:-.=%@@@@@=--==---#@@@@@@#--===--+@@@%+.-##+#%@
21+
@%#**#####***=:.:@*=-.=%@@@@@=-*@@+-=%@@@@@@#--#@@--+@@@%+.-#%*.*@
22+
@%###=...+%#***=..*#-.=%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+.-%%*:.=@
23+
@@@@@##+.-+%%*--:=#*=..*#-.=%@@@@@@@@@@@@@%%@@@@%%@@@@@@@@@@@%+.-%%#*-=@@@@
24+
@@@@@#--=+##+:%%%%%+#-=#*=..*#-.=%@@@@@@@@@@@@@%*====#%@@@@@@@@@@@%+.-%%#*-=@++#@@@@
25+
@@@@+.......:=##+:%%%%+-#-=#*=..*#-.=%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+.-%@#*-=@......*@@@@
26+
@@+-......-----=##+:#+*+=#%-=#*=..*#-:.:=%@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+:.:-%%#*-=@------:..:+%@
27+
@@*=::-::=******##*=-#++#%==*#*+::*#----.:+##########################*:.----%%#*=+@=-+***=-:-+%@
28+
@@@@@@@@@@@@@@%##*:-#%#-:*##++-=#*-----..............................-----#%*--+@@@@@@@@@@@@@
29+
@%###+:.:*####=-=@*=----------------+++++++++--------------*%%*-#@@
30+
@%##########=-+%%=---------------+***********=-----------=%%##%@@
31+
@@%%#####*--=*%###*+======-----*#***********#*---=====+*@%#%@@
32+
@@%%%%%###%%############*==-=*************#*-=*######%@@@@@
33+
@@@@@%%%%####=-----+#####%%###########%%###=--=*@@
34+
@@@@%%%%%#############%%#########%@%########@@
35+
@@@@@@@%%%%%%%%%%%%@%%%%%%%%%%%@%%%%%%%%@@
36+
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
37+
@@@@===*@@%%%%%%%%%%%*===#@@@
38+
----::+*********----==
39+
==--:::::::::::::-====
40+
-----:::::::::---===
41+
-===-::::::::======
42+
+==---::::--===
43+
====--:::-=====
44+
-------==
45+
-==--====
46+
=====

‎tests/Run-Tests.ps1‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $temporaryRoot = Join-Path ([IO.Path]::GetTempPath()) ('At0mFlow-ScriptAudit-Tes
2929

3030
try {
3131
$manifest = Test-ModuleManifest -Path $modulePath
32-
Assert-That ($manifest.Version.ToString() -eq '1.1.1') 'The module manifest is valid.'
32+
Assert-That ($manifest.Version.ToString() -eq '1.1.2') 'The module manifest is valid.'
3333

3434
Import-Module $modulePath -Force
3535
$moduleInstance = Get-Module At0mFlow.ScriptAudit
@@ -259,6 +259,7 @@ try {
259259
Assert-That ($LASTEXITCODE -eq 0) 'The entry script exits successfully.'
260260
$block = [string] [char] 0x2588
261261
$logoFragment = ' ' + (($block * 5) -join '') + [char] 0x2557
262+
Assert-That $consoleText.Contains(('@' * 26)) 'Interactive output renders the Orbit mascot.'
262263
Assert-That $consoleText.Contains($logoFragment) 'Interactive output renders the At0mFlow block wordmark.'
263264
Assert-That ($consoleText -match 'At0mFlow Script Audit') 'Interactive output identifies the collector.'
264265
Assert-That ($consoleText -match 'Treat the bundle as confidential') 'Interactive output includes the privacy warning.'

0 commit comments

Comments
 (0)