Giter Site home page Giter Site logo

Comments (8)

DarwinCSIWindowscom avatar DarwinCSIWindowscom commented on August 20, 2024

OK - these are actually dynamically generated boxstarter scripts - so I had to manually concenate them anyway because doing them on the boxstarter command line results in trying to install the "temp" named package multiple times.

from boxstarter.

mwrock avatar mwrock commented on August 20, 2024

Yeah. Boxstarter does not do any reordering and processes everything top to bottom. I'm assuming the script generation you are referring to is happening on your end?

from boxstarter.

DarwinCSIWindowscom avatar DarwinCSIWindowscom commented on August 20, 2024

Yes - I have a calling script that concatenates them. Have also worked out a way to reliably have a local include script with my own functions for prompting,etc.

It would sure be nice if when boxstarter receives a list of scripts that aren't npkg files that it would create "temp1", "temp2", "temp3" and then chain them together so that the multiple package support was built in for temporary packages as well :)

from boxstarter.

mwrock avatar mwrock commented on August 20, 2024

Hmm. I'm not sure I'm following you. Can you clarify "giving boxstarter a list of scripts?" Maybe provide an example of how you are calling it?

Thanks!

from boxstarter.

DarwinCSIWindowscom avatar DarwinCSIWindowscom commented on August 20, 2024

So if I do:

Install-BoxstarterPackage @(package1, package2)

Where package1 and package 2 are script files that boxstarter dyamically compiles into the temp package. It seems to compile each script into the same named temp package - every additional one after the first one says that the package is already installed.

from boxstarter.

mwrock avatar mwrock commented on August 20, 2024

ahhh. gotcha. Unfortunately Boxstarter handles script files differently than true packages which is not documented and clearly suboptimal. You can work around this however by doing something like this:

@(package1, package2) | % { Install-BoxstarterPackage $_ }

from boxstarter.

DarwinCSIWindowscom avatar DarwinCSIWindowscom commented on August 20, 2024

I don't think that would persist through a reboot right? Because if script 2 of 5 reboots it wouldn't restart my script that is doing the above loop?

So I am doing this:

@("$PSScriptRoot\script1.txt", "$PSScriptRoot\script2.txt", "$PSScriptRoot\script3.txt") | %{Get-Content $_ | Add-Content "consolidatedscript.txt"}

Install-BoxstarterPackage -PackageName consolidatedscript.txt

from boxstarter.

mwrock avatar mwrock commented on August 20, 2024

You are correct assuming you are calling it locally.

from boxstarter.

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.