Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pipelines #26

Open
xmnlab opened this issue Mar 9, 2023 · 0 comments
Open

Add support for pipelines #26

xmnlab opened this issue Mar 9, 2023 · 0 comments

Comments

@xmnlab
Copy link
Member

xmnlab commented Mar 9, 2023

In order to add support for pipelines, we could add a new entry in the root of the file for pipelines .. and create pipelines using any of the targets. Example:

version: 1.0.0
groups:
  main:
    env-file: .env
    targets:
      read:
        help: Read file
        args:
          filepath:
            type: string
            default:
        run: cat {{ args.filepath }}
      count:
        help:  Counts the number of lines in the input.
        run: wc -l

pipelines:
  count-lines-myfile:
    help: 
    tasks:
      - target: main.read
        args:
          filepath: /tmp/myfile.txt
      - target: main.count

makim could have an option to visualize the graph of the pipelines, maybe using asciinet. Example of a CLI call:

$ makim pipeline run count-lines-myfile
$ makim pipeline show count-lines-myfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant