Coder Social home page Coder Social logo

Pass arguments to tasks? about saku HOT 4 CLOSED

kt3k avatar kt3k commented on September 27, 2024
Pass arguments to tasks?

from saku.

Comments (4)

kt3k avatar kt3k commented on September 27, 2024 1

@shadowrylander Thanks for the feedback!

would there be any possible way to pass arguments to saku?

You can pass extra options to the commands in tasks by appending -- and any arguments at the end. For example:

saku.md

# hello

    echo hello

The command:

saku hello -- xyz

-- xyz part means to pass xyz to the internal command, and then the above executes the command echo hello xyz. Is this what you're looking for?

from saku.

kt3k avatar kt3k commented on September 27, 2024 1

Any number of arguments should work. saku doesn't parse the arguments after --, you can do something like this: saku hello -- xyz --foo bar. This results executing the command echo hello xyz --foo bar

from saku.

shadowrylander avatar shadowrylander commented on September 27, 2024

Give or take! The syntax is a tad confusing, but I believe I can work with it; can I put multiple arguments as well, or just the one? So something similar to saku hello -- xyz abc?

from saku.

shadowrylander avatar shadowrylander commented on September 27, 2024

Ah, right! Thank you, then! I'll close this issue, now, I think!

from saku.

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.