Code Monkey home page Code Monkey logo

Comments (8)

premun avatar premun commented on August 25, 2024 1

Alright, I made some progress and made your example work:
https://github.com/sharpliner/sharpliner/blob/55b9fbb12e9610df0013a79792a195982d47f94a/tests/Sharpliner.Tests/AzureDevOps/ConditionedExpressions/EachExpressionTests.cs

I only need to verify everything and then I will push this change and make a new version of the library.

from sharpliner.

premun avatar premun commented on August 25, 2024

Thanks for opening this issue, this is a missing feature. This should be easy to add, I will have a look at it next week.

from sharpliner.

asos-neildownes avatar asos-neildownes commented on August 25, 2024

Thanks much appreciated

from sharpliner.

premun avatar premun commented on August 25, 2024

Apologies, I fell sick. But the problem seems a bit more complex than I thought. It's about how ifs and each blocks can be mixed, it makes it quite hard to have both.

from sharpliner.

asos-neildownes avatar asos-neildownes commented on August 25, 2024

Hello, perhaps delivering the each blocks without if/else will still provide value to developers.
Thanks in advance

from sharpliner.

premun avatar premun commented on August 25, 2024

Ah, I was able to find a nice solution which makes it work with everything. Will post a PR + new version shortly.

from sharpliner.

premun avatar premun commented on August 25, 2024

@asos-neildownes there will be a new version 1.5.7 of the package that should support each.
I tried to do it fast so it's possible there might be some convoluted cases where it doesn't work. For instance, nested each blocks don't work but maybe I can add the support as a follow up and you are hopefully unblocked now.

Let me know how it works.

from sharpliner.

premun avatar premun commented on August 25, 2024

I am closing this in favour of a new issue that only describes the problems with nested conditioned blocks

from sharpliner.

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.