Git Product home page Git Product logo

Comments (4)

pomdtr avatar pomdtr commented on August 17, 2024 1

Ok, it works perfectly thanks a lot!

I think an error message would have helped me to figure out the issue by myself, it could be a future improvement :)
Awesome job on the app, I will watch it's progress closely :)

from kit.

pomdtr avatar pomdtr commented on August 17, 2024

Ok the sk utility looks perfect to achieve this (however I am not able to get any response from it, I asked for help in #364 ). I'll keep the issue open, an URL scheme would an even easier way to achieve the same result :)

from kit.

johnlindquist avatar johnlindquist commented on August 17, 2024

@pomdtr I'm using url the scheme for installing scripts from ScriptKit.com.

open "kit://hello-world?url=https://raw.githubusercontent.com/johnlindquist/shared-kenv/main/scripts/hello-world.js"

☝️ That would grab that file and name it "hello-world.js" in your kit environment (kenv).

I'm hesitant to allow the URL protocol to run any script because I'm worried it would get abused. I'm open to ideas of ways to make it safer.

sk

It should just be sk then the command name of your script:

~/.kit/bin/sk book-search

(or just sk book-search if you ~/.kit/bin is on your $PATH)

Does that not work for you? Do you see an error or any output?

from kit.

johnlindquist avatar johnlindquist commented on August 17, 2024

Closing this for now. Feel free to re-open if we can come up with scenarios where sk isn't good enough.

from kit.

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.