Coder Social home page Coder Social logo

Comments (4)

RamblingCookieMonster avatar RamblingCookieMonster commented on June 30, 2024

Cool idea!

@proxb has a slick project that basically implements a job-like system for runspaces. Looks like he implemented handling for $Using:variable fairly recently.

I'll take a stab at borrowing some ideas and converting to PowerShell 2 syntax. Haven't had a chance to play with the AST yet.

from invoke-parallel.

RamblingCookieMonster avatar RamblingCookieMonster commented on June 30, 2024

Duct taped that in, minimal to no changes to @proxb's code. Relies on AST so PowerShell 3 and later only (reflects $Using in all other scenarios, so should meet user's expectations). Not sure if PSParser would work for this to provide down-level support...

If you think the implementation makes sense let me know and we can merge it in.

Cheers!

from invoke-parallel.

proxb avatar proxb commented on June 30, 2024

I have probably an 80% solution for V2 $Using: support using PSParser. Pretty much everything up until adding the updated variables into the scriptblock as well as updating the Param() statement with the variables. If I can remember, I will grab the code from work and post in a Gist and link it here in case you wanted to take a swing at is as well.

from invoke-parallel.

RamblingCookieMonster avatar RamblingCookieMonster commented on June 30, 2024

The basic implementation is in place - closing this out just to clean up this mess. At this point, personally, I'm not worried about PowerShell v2 support : )

Cheers!

from invoke-parallel.

Related Issues (20)

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.