Giter VIP home page Giter VIP logo

Comments (1)

calebcartwright avatar calebcartwright commented on May 30, 2024

For anyone interested in working on this, a couple recent PRs have made it really simple to deliver this feature with a small final amount of work.

Basically, we just need to change the final arg from None to an option-wrapped HashMap reference that uses RUSTY_HOOK_GIT_PARAMS for the key and the value would be the args parameter in the run function (currently _args because it's not used yet).

match run_command(&script, Some(&root_directory_path), log_details, None) {

Could also consider tweaking the cli to keep the Option<String> and passing that along to run, and conditionally set the value passed to run_command based on whether args is None or Some, with None and the HashMap respectively

RustyHookOpts::Run { hook, args } => run(hook, args.unwrap_or_default()),

fn run(hook: String, args: String) {

from rusty-hook.

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.