Giter Site home page Giter Site logo

Comments (3)

7sharp9 avatar 7sharp9 commented on September 21, 2024

API would have a IsBatch that returns true and a property that exposes the state that that particular plugin can update, or potentially just add to the list of states so fan, unsure...

type state {
FirstRun: bool
Cache: KVP<string, obj> }

So the first run could be queried to see if a first run action might need to be run, like erasing some stuff or clearing a folder, what ever.

Or there could be a OnFirstRun() function that gets run, on the first run my the plugin host. Probably better to just defer to the plugin, it gets supplied a state, state gets updates on plugin completion, simple, firstRun always set to false when its returned, plugin wonders can add stuff to the cache that subsequent plugins can use that are in the same batch.

from myriad.

7sharp9 avatar 7sharp9 commented on September 21, 2024

This might be useful for #145 or #146

from myriad.

7sharp9 avatar 7sharp9 commented on September 21, 2024

I don't want plugins to get too complex so on second thoughts this is out of scope.

from myriad.

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.