plastikfan / terminalbuddy Goto Github PK
View Code? Open in Web Editor NEWUtility module for Windows Terminal
License: MIT License
Utility module for Windows Terminal
License: MIT License
WindowsTerminalSettingsPath may not be avilable in the built module. Also, make sure that any reference to is subject to Test-Path, so that there are no errors if TerminlaBuddy is installed but WindowsTerminal isn't.
branch: fix-settings-path
See: https://powershell.anovelidea.org/powershell/how-i-implement-module-variables/
Ensure installable as module and other tasks required for publish including documentation.
branch: prep-module-install
Repace with Get-KrayolaTheme
branch: Get-KrayolaTheme
Create utility function to perform the extraction of the iterm colour schemes (.itermcolors files) to create themes in a Terminal compatible format.
branch: convertfrom-itermcolors
Have a look at PSScriptAnalyzer on GitHub for an example of Azure CI
write-HostItemDecorator can easily be turned into a script block obviating the need for the wrapper object. I discovered this as a result of perusing as issue on PSScriptAnalyzer (PowerShell/PSScriptAnalyzer#711 (comment)); a comment by @rjmholt illustrates how to do this:
We can use this technique for passing write-HostItemDecorator as a parameter to invoke-ForeachFile, without powershell mistaing it for in an place invocation of the function.
Currently, write-HostItemDecorator accidentally assumes that its dealing with files (when it is supposed to be more generic than that). It uses the string 'filename' in teh call to Write-ThemedPairsInColour, when this label should be defined by the client as a PassThru property called ITEM-LABEL.
It also needs to use the Product on the invoke result and write that too.
Message should not be a mandatry item.
branch: use-item-label
Bootstrap the application structure
branch: bootstrap
There is no need for this facility now that we have the DryRunFile
branch: remove-out-param
build is an unapproved verb (well its a reserved verb)
When 'StrictMode' is set at the top of the build script, some tests are failing:
[+] C:\Users\Plastikfan\dev\github\PoSh\TerminalBuddy\Elizium.TerminalBuddy\Tests\Internal\join-AllSchemas.tests.ps1 319ms
(38ms|249ms)
Integrating new theme // ["Scheme name" => "Batman"]
[-] merge-SettingsContent.Given: content with single new scheme.Should: merge the new scheme with Settings 72ms (69ms|3ms)
PropertyNotFoundException: The property 'schemes' cannot be found on this object. Verify that the property exists.
at <ScriptBlock>, C:\Users\Plastikfan\dev\github\PoSh\TerminalBuddy\Elizium.TerminalBuddy\Tests\Internal\merge-SettingsContent.tests.ps1:29
Integrating new theme // ["Scheme name" => "Batman"]
Integrating new theme // ["Scheme name" => "Highway"]
[-] merge-SettingsContent.Given: content with multiple (x2) new schemes.Should: merge the new schemes with Settings 95ms (94ms|2ms)
PropertyNotFoundException: The property 'schemes' cannot be found on this object. Verify that the property exists.
at <ScriptBlock>, C:\Users\Plastikfan\dev\github\PoSh\TerminalBuddy\Elizium.TerminalBuddy\Tests\Internal\merge-SettingsContent.tests.ps1:47
Skipping existing theme // ["Scheme name" => "Cyberdyne"]
[-] merge-SettingsContent.Given: content with single scheme already present in settings.Should: not merge new scheme 54ms (53ms|1ms)
PropertyNotFoundException: The property 'schemes' cannot be found on this object. Verify that the property exists.
at <ScriptBlock>, C:\Users\Plastikfan\dev\github\PoSh\TerminalBuddy\Elizium.TerminalBuddy\Tests\Internal\merge-SettingsContent.tests.ps1:64
Integrating new theme // ["Scheme name" => "Batman"]
Skipping existing theme // ["Scheme name" => "Cyberdyne"]
[-] merge-SettingsContent.Given: content with 1 new scheme and 1 existing scheme.Should: only merge the new scheme with Settings 60ms
(59ms|1ms)
PropertyNotFoundException: The property 'schemes' cannot be found on this object. Verify that the property exists.
at <ScriptBlock>, C:\Users\Plastikfan\dev\github\PoSh\TerminalBuddy\Elizium.TerminalBuddy\Tests\Internal\merge-SettingsContent.tests.ps1:82
Skipping existing theme // ["Scheme name" => "Cyberdyne"]
Skipping existing theme // ["Scheme name" => "Chalkboard"]
[-] merge-SettingsContent.Given: content with existing (x2) schemes.Should: not merge new scheme 54ms (52ms|2ms)
PropertyNotFoundException: The property 'schemes' cannot be found on this object. Verify that the property exists.
at <ScriptBlock>, C:\Users\Plastikfan\dev\github\PoSh\TerminalBuddy\Elizium.TerminalBuddy\Tests\Internal\merge-SettingsContent.tests.ps1:100
Importing Terminal Scheme // ["No" => " 1", "Scheme filename" => "Banana Blueberry.itermcolors", "Scheme name" => "Banana Blueberry"]
The following needs to be in the build script:
Set-StrictMode -Version Latest
Use the scribbler.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.