Giter Club home page Giter Club logo

Comments (4)

herrjulz avatar herrjulz commented on June 26, 2024 1

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.

herrjulz avatar herrjulz commented on June 26, 2024 1

Hey @prein,
the new release is now available: https://github.com/JulzDiverse/aviator/releases/tag/v1.5.0

from aviator.

prein avatar prein commented on June 26, 2024

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.

herrjulz avatar herrjulz commented on June 26, 2024

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)

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.