name: save_params
namespace: utils
description: |
  Save parameters to a YAML file

argument_groups:
  - name: Inputs
    arguments:
      - name: "--id"
        description: |
          The id of the job
        type: string
        required: true
      - name: "--params_yaml"
        description: |
          base64 encoded yaml containing the state
        type: string
        required: true
    
  - name: Outputs
    arguments:
      - name: "--output"
        description: |
          The output YAML file
        type: file
        direction: output
        required: true
        example: "output.yaml"

resources:
  - type: python_script
    path: script.py

engines:
  - type: docker
    image: python:3.12-slim
    setup:
      - type: apt
        packages:
          - procps
      - type: python
        packages:
          - pyyaml

runners:
  - type: executable
  - type: nextflow