Manage `files` & `globs` differently
See original GitHub issueThe values are stored & retrieved perfectly with single tasks and serial
chains.
But with large parallel
chain, the known values aren’t 100% consistent. This is because ALL tasks & plugins are looking at & modifying the same internal variables: fly._.files
, fly._.globs
.
Ideas
Attach files
and globs
values to each fly.tasks
entry.
-
Will need a getter & setter for
files()
andglobs()
. These return & set the current task’s values. -
Will need a way to know what
task
is currently being executed.
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (12 by maintainers)
Top Results From Across the Web
Python glob multiple filetypes - Stack Overflow
To glob multiple file types, you need to call glob() function several times in a loop ...
Read more >Use the OS and Glob Python Packages to Manipulate File Paths
glob is a powerful tool in Python to help with file management and ... glob uses different operators to broaden its searching abilities....
Read more >Understanding the glob pattern in Node.js - LogRocket Blog
The glob pattern adds all files within a directory with the .java extension, ... matching patterns across different programming languages.
Read more >Python Glob: Filename Pattern Matching - PYnative
Python glob module to find files and folders whose names follow a specific pattern. Search files recursively with wildcard characters.
Read more >File Name Glob Patterns - Fossil SCM
Git's globs and Fossil's globs treat directory separators differently. Git includes a notation for zero or more directories that is not needed in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I read through some of the issue and one “farfetched” idea is to stop using
this
. It seems similar in nature to option 2. The idea would be for each task to be passed in the appropriate information and potentially return output to modify the input for the next plugin. Ultimately, this is just moving it to a functional style, so you just pass input and get output through the chain of plugins.@devmondo Thanks. I checked up on it and it looks like
process.env
goes way back, as I suspected / hoped.