Giter Club home page Giter Club logo

Comments (7)

andreynering avatar andreynering commented on May 18, 2024 1

Taskfile_{{.GOOS}}.yml should be very simple.

About interpolation with same-context variables, I don't how to implement that. Maybe a list as @smyrman suggested, but seems a bit counter-intuitive to the user.

from task.

smyrman avatar smyrman commented on May 18, 2024

I agree with this proposal.

It also optionally allows for later features, like allowing an "env" section to be passed in (not suggesting that we do that now), or allowing shell commands as dependencies.

from task.

zbindenren avatar zbindenren commented on May 18, 2024

If the following Taskvars.yaml would save me a lot of boilerplate:

VAR1: hello
VAR2: {{.VAR1}} world #<- VAR2 would be hello world

This is probably not easly possible.

Also: Taskvars_{GOOS}.yaml would be cool to overwrite dynamic variables.

from task.

smyrman avatar smyrman commented on May 18, 2024

@zbindenren, I don't see that as relevant to this issue. You can create a new issue for it perhaps, but as you say, it's not really easily possible to do this in a deterministic way.

Issue #40 is more closely related to what you ask.

UPDATE: I guess it's somewhat related, in that while changing the syntax anyway, if variables where changed to be a list of objects, then it would be possible.

vars:
  - VAR1: hello
  - VAR2: "{{.VAR1}} world"
  - {VAR3: "hey", VAR4: "{{.VAR1}} there"} # Also possible, but here VAR4 may not use VAR3...
 

But probably still best discussed in a new issue.

from task.

smyrman avatar smyrman commented on May 18, 2024

Maybe a list as @smyrman suggested, but seems a bit counter-intuitive to the user.

I agree to that. It's not a good solution.

from task.

andreynering avatar andreynering commented on May 18, 2024

@zbindenren Taskvars_{{GOOS}}.yml should be working on master branch.

from task.

zbindenren avatar zbindenren commented on May 18, 2024

Great thx :-)

from task.

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.