Comments (4)
Hi @prein,
thx for opening an issue.
I thought about something like that as well. For example something like:
exec: cp
for_each_in: folder/
to: destination/
or
exec: rm
for:
- folder/file1
- folder/file2
exec
in that case could be any file manipulation linux cmd like: cp
, mv
, rm
, chmod
, etc.
Is that what you think of?
from aviator.
Hey @prein,
the new release is now available: https://github.com/JulzDiverse/aviator/releases/tag/v1.5.0
from aviator.
Hi @JulzDiverse
Thanks for taking the time to think about it.
I like the exec
approach.
Would that support multiple exec
calls?
On a minor note: Looking at the example you provided I had an idea for different nesting, although my idea won't be that consistent with how spruce is called. Anyway, let me share my thoughts. I mean doing this for example:
exec:
cp:
for_each_in: folder/
to: destination/
rm:
for:
- folder/file1
- folder/file2
instead of
exec: cp:
for_each_in: folder/
to: destination/
exec: rm:
for:
- folder/file1
- folder/file2
from aviator.
Hi @prein,
I thought a long time about this feature. But I wasn't sure if I really want to add it. Aviator is a tool that should really serve YAML files only. So it was kinda hard to find a good way to integrate such a feature. However, I worked on a "generic" executor, which I think fits good for such use cases. You can define an arbitrary number of generic executors that can execute any installed command/executable. It will be part of the next aviator release (v1.5.0
).
from aviator.
Related Issues (20)
- Not able to build the binary from main.go HOT 1
- This is an awesome project HOT 1
- Is windows supported? HOT 3
- non-interactive mode for fly HOT 2
- Updating from v0.17.0 to v0.18.0 issue HOT 2
- Passing error code from fly HOT 4
- New release to include the latest spruce features such as ((load ...)) HOT 1
- [feature] fly executor performing "validate-pipeline" HOT 2
- [feature] investigating applicability of ytt HOT 4
- Exposed pipelines can't be hidden HOT 2
- Render to STDOUT HOT 3
- fly set-pipeline bails out unless non_interactive = True HOT 2
- [feature request] New merge type that doesn't require a file
- [feature request] Support setting array values
- [feature request] support executor for each output HOT 2
- Merge not merging? HOT 2
- Except not working with for_each and include_sub_dirs HOT 1
- [feature request] multi-dimensional for_each
- Possible Bug: merge is overwriting instead of appending HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aviator.