Skip to content

Commit

Permalink
Merge pull request #136 from kestra-io/excel-documentation
Browse files Browse the repository at this point in the history
Add example for sheets arrangement
  • Loading branch information
anna-geller authored Aug 20, 2024
2 parents c7f06fb + 8667a86 commit bbded1e
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions src/main/java/io/kestra/plugin/serdes/excel/IonToExcel.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,39 @@
type: io.kestra.plugin.serdes.excel.IonToExcel
from: "{{ outputs.convert.uri }}"
"""
)
}
),
@Example(
full = true,
title = "Download CSV files and convert them into an Excel file with dedicated sheets.",
code = """
id: excel
namespace: company.team
tasks:
- id: dataset1
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/products.csv
- id: dataset2
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/fruit.csv
- id: convert1
type: io.kestra.plugin.serdes.csv.CsvToIon
from: "{{ outputs.dataset1.uri }}"
- id: convert2
type: io.kestra.plugin.serdes.csv.CsvToIon
from: "{{ outputs.dataset2.uri }}"
- id: write
type: io.kestra.plugin.serdes.excel.IonToExcel
from:
Sheet_1: "{{ outputs.convert1.uri }}"
Sheet_2: "{{ outputs.convert2.uri }}"
"""
)
}
)
public class IonToExcel extends AbstractTextWriter implements RunnableTask<IonToExcel.Output> {

Expand Down

0 comments on commit bbded1e

Please sign in to comment.