Giter Club home page Giter Club logo

Comments (1)

vlcinsky avatar vlcinsky commented on May 18, 2024

@schettino72 Sorry for still adding content here, but my attempt to add this as a message to the discussion group seems to have no effect so far (I added it over web interface while being signed in and being marked as a member).

Some ideas and proposals for case it is not possible (yet):

def task_shaker():
    """Does something, survives particular failures"""
    return
    {
        "actions": [
            # simply prefix "-" to the command string
            "-makeindex -s python.ist data.idx",
            # "-" first item for cmd arg list
            ["-", "makeindex", "-s", "python.ist", "data.idx"],
            # CmdAction arg fail_safe=True
            CmdAction("makeindex -s python.ist data.idx", fail_safe=True),
            # "-" prefix recognized even in CmdAction
            CmdAction("-makeindex -s python.ist data.idx", cwd=subdir),
            # CmdFailSafe wrapps cmd-action failure, always pretends success
            CmdFailSafe("makeindex -s python.ist data.idx", cwd=subdir),
            # failsafe wrapps python-actions, always pretends success
            failsafe(makeindex, args, kwargs),
            # minus prefix in cmd-action tupple variant
            ("-", "makeindex -s python.ist data.idx"),
            # minus in terms "next one to fail safe"
            "-",
            "makeindex -s python.ist data.idx",
            # the same, just written on one line
            "-", "makeindex -s python.ist data.idx",
            # minus as "next one to fail safe" works for python-action too
            "-", (makeindex, args, kwargs),
        ]
    }

My preference (from dodo.py author point of view) would be whatever uses the "-".

  • Last two would suffice
  • Any other "-" related ones two would be easy to understand.
  • Adding too many other options could be counter productive but could be done if there are good reasons for that.

from doit.

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.