2024-07-24 10:13:53 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-08-22 19:19:40 +02:00
|
|
|
cd ..
|
|
|
|
|
2024-07-30 18:06:16 +02:00
|
|
|
ARTIFACT_NAME=$1
|
|
|
|
ARTIFACT_OUT="artifacts/json/$ARTIFACT_NAME.json"
|
|
|
|
ARTIFACT_IN="artifacts/nickel/$ARTIFACT_NAME.ncl"
|
|
|
|
CONTRACT="workflow/nickel/artifact_contract.ncl"
|
2024-07-24 10:13:53 +02:00
|
|
|
|
2024-07-30 18:06:16 +02:00
|
|
|
# nickel export --format json --output artifacts/json/$ARTIFACT.json workflow/nickel/artifact_contract.ncl artifacts/nickel/$ARTIFACT.ncl
|
|
|
|
nickel export --format json --output $ARTIFACT_OUT <<< 'let {Artifact, ..} = import "'$CONTRACT'" in ((import "'$ARTIFACT_IN'") | Artifact)'
|