Git Product home page Git Product logo

terminalbuddy's People

Contributors

plastikfan avatar

Watchers

 avatar  avatar

terminalbuddy's Issues

Make installable as module

Ensure installable as module and other tasks required for publish including documentation.

branch: prep-module-install

Add new function ConvertFrom-ItermColors

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

write-HostItemDecorator is un-necessarily wrapped

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.

write-HostItemDecorator needs to use item-label

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

Remove Out parameter

There is no need for this facility now that we have the DryRunFile

branch: remove-out-param

Failing tests in StrictMode

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.