GithubHelp home page GithubHelp logo

Comments (4)

deanishe avatar deanishe commented on May 21, 2024

How does that AlfredBundler::load_env nodejs double colon stuff work? (bash is not my strong point).

from alfred-bundler.

shawnrice avatar shawnrice commented on May 21, 2024

Turns out the Google's Shell coding style recommends prefixing library functions with LIBRARYNAME::.

Regular bash functions, thus, can have colons in them (who knew?). So, to avoid naming conflicts, I'm removing the older __ prefixes and adding AlfredBundler:: as the prefix. Although, according to the coding standards, that should probably be something like alfred_bundler, but I'm trying to keep some consistency through all of the bundlers.

See AlfredBundler.sh for a partly re-written version of the bash bundler backend that has the library prefixes. Bonus: it now handles all of the icon color conversion calculations natively. Floating point math in bash! Woot.

from alfred-bundler.

shawnrice avatar shawnrice commented on May 21, 2024

Oh, here's a more direct answer:

We'd create a function called AlfredBundler::load_env that could take a few predefined environments that we've created, and that would (1) install the environment (which would take forever) and (2) return the path to the main binary.

from alfred-bundler.

shawnrice avatar shawnrice commented on May 21, 2024

While I'm still not too sure how I feel about this, I still think that we'd have to compile stand-alone binaries in order to keep these from the rest of the system (and because we can't assume that the user will have the correct dev tools to compile a sandboxed version).

Here are two tools that might help:

from alfred-bundler.

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.