Git Product home page Git Product logo

Comments (11)

SMillerDev avatar SMillerDev commented on May 28, 2024

I think this first requires a way for brew to start a cask independently of brew bundle

from homebrew-bundle.

vraravam avatar vraravam commented on May 28, 2024

I think this first requires a way for brew to start a cask independently of brew bundle

did you mean for such a feature to be supported from the cmd-line brew first, and only then from the Brewfile's DSL?

from homebrew-bundle.

SMillerDev avatar SMillerDev commented on May 28, 2024

Yeah, since the Brewfile DSL just runs brew functions under the hood.

from homebrew-bundle.

vraravam avatar vraravam commented on May 28, 2024

I see various references to Bundle.system in this repo. I was thinking that would be the way to use the open command on macos to start the application. Wouldn't that suffice?

from homebrew-bundle.

SMillerDev avatar SMillerDev commented on May 28, 2024

But how does one start a cask. How do you know what to start?

from homebrew-bundle.

vraravam avatar vraravam commented on May 28, 2024

But how does one start a cask. How do you know what to start?

open command on macos like so: open /Applications/KeePassXC.app

from homebrew-bundle.

SMillerDev avatar SMillerDev commented on May 28, 2024

But a lot of casks are pkg files, or contain multiple apps. So that will create an experience where it's just a gamble if it'll work

from homebrew-bundle.

vraravam avatar vraravam commented on May 28, 2024

if that's the case, then my suggestion would be to let the user specify a system command to execute upon successful completion of the installation of each cask. That allows the flexibility to the user and they can choose to open 1 or more of those apps. Could we pivot to that?

from homebrew-bundle.

jacobbednarz avatar jacobbednarz commented on May 28, 2024

sorry, but I'm a 👎 on this feature request for a couple of reasons.

  1. you don't "start" a cask. you install a cask which then extracts all the nessecary parts into your system. what you're talking about here is more related to services and being able to launch them. if you want this, I'd suggest looking at the individual cask/formula and seeing if it can be included in there. this is something that is already supported.
  2. as @SMillerDev mentioned, a cask isn't always a single executable and expecting the user to know which they want to target is unreasonable. similarly, it's unreasonable for bundle to guess as getting the wrong information is worse than not doing it at all since you've then incorrectly taken the user down another path.

from homebrew-bundle.

colindean avatar colindean commented on May 28, 2024

I am likewise not in favor of this for the same reasons that Jacob is.

The at_exit method in a Brewfile should adequately handle this for your particular use case. at_exit runs just before the process exits for any reason as long as the process is still running. That is, it won't run if the process was killed. Within the bounds of the normal operation of brew bundle, at_exit should always run.

from homebrew-bundle.

MikeMcQuaid avatar MikeMcQuaid commented on May 28, 2024

Passing on this for now, sorry!

from homebrew-bundle.

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.