{"id":16714705,"url":"https://github.com/civitaspo/digdag-operator-param","last_synced_at":"2025-04-10T06:13:37.228Z","repository":{"id":52560278,"uuid":"151437005","full_name":"civitaspo/digdag-operator-param","owner":"civitaspo","description":"digdag plugin for operating param","archived":false,"fork":false,"pushed_at":"2021-04-26T02:40:24.000Z","size":200,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T07:22:31.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/civitaspo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"civitaspo"}},"created_at":"2018-10-03T15:38:19.000Z","updated_at":"2023-09-27T01:42:46.000Z","dependencies_parsed_at":"2022-09-23T08:11:54.188Z","dependency_job_id":null,"html_url":"https://github.com/civitaspo/digdag-operator-param","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civitaspo%2Fdigdag-operator-param","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civitaspo%2Fdigdag-operator-param/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civitaspo%2Fdigdag-operator-param/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civitaspo%2Fdigdag-operator-param/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/civitaspo","download_url":"https://codeload.github.com/civitaspo/digdag-operator-param/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166925,"owners_count":21058481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T21:06:38.748Z","updated_at":"2025-04-10T06:13:37.211Z","avatar_url":"https://github.com/civitaspo.png","language":"Scala","funding_links":["https://github.com/sponsors/civitaspo"],"categories":[],"sub_categories":[],"readme":"# digdag-operator-param\n[![Jitpack](https://jitpack.io/v/pro.civitaspo/digdag-operator-param.svg)](https://jitpack.io/#pro.civitaspo/digdag-operator-param) [![CircleCI](https://circleci.com/gh/civitaspo/digdag-operator-param.svg?style=shield)](https://circleci.com/gh/civitaspo/digdag-operator-param) [![Digdag](https://img.shields.io/badge/digdag-v0.9.30-brightgreen.svg)](https://github.com/treasure-data/digdag/releases/tag/v0.9.30)\n\ndigdag plugin for operating params.\n\n\n# Overview\n\n- Plugin type: operator\n\n# Usage\n\n```yaml\n\n_export:\n  plugin:\n    repositories:\n      - https://jitpack.io\n    dependencies:\n      - pro.civitaspo:digdag-operator-param:0.0.2\n\n+show1:\n  echo\u003e: \"hoge: ${typeof(hoge) == 'undefined' ? 'None' : hoge}, a.b: ${typeof(a) == 'undefined' ? 'None' : typeof(a.b) == 'undefined' ? 'None' : a.b}\"\n\n+store:\n  param_store\u003e:\n    hoge: fuga\n    a:\n      b: c\n\n+show2:\n  echo\u003e: \"hoge: ${typeof(hoge) == 'undefined' ? 'None' : hoge}, a.b: ${typeof(a) == 'undefined' ? 'None' : typeof(a.b) == 'undefined' ? 'None' : a.b}\"\n\n+reset:\n  +hoge:\n    param_reset\u003e: hoge\n  +a.b:\n    param_reset\u003e: a.b\n\n+show3:\n  echo\u003e: \"hoge: ${typeof(hoge) == 'undefined' ? 'None' : hoge}, a.b: ${typeof(a) == 'undefined' ? 'None' : typeof(a.b) == 'undefined' ? 'None' : a.b}\"\n\n+eval:\n  _export:\n    a: aaa\n    b: bbb\n    c: ccc\n    d: ${a}-${b}-${c}\n\n  +a:\n    _export:\n      e: ${d}\n      f:\n        g: ${d}\n        h:\n          - ${d}\n    +b:\n      echo\u003e: ${d}\n    +c:\n      echo\u003e: ${e}\n    +d:\n      echo\u003e: ${f.g}\n    +e:\n      param_eval\u003e: f.g\n    +f:\n      echo\u003e: ${f.g}\n    +g:\n      +h:\n        for_each\u003e: {i: \"${f.h}\"}\n        _do:\n          echo\u003e: ${i}\n      +i:\n        echo\u003e: ${f.h}\n    +j:\n      param_eval\u003e: f.h\n    +k:\n      +l:\n        for_each\u003e: {i: \"${f.h}\"}\n        _do:\n          echo\u003e: ${i}\n      +m:\n        echo\u003e: ${f.h}\n\n```\n\n# Configuration\n\n## Configuration for `param_store\u003e` operator\n\n### Options\n\n- **param_store\u003e**: Params to store. (string to object map, required)\n\n## Configuration for `param_reset\u003e` operator\n\n### Options\n\n- **param_reset\u003e**: Param name to reset. (string, required)\n\n## Configuration for `param_eval\u003e` operator\n\n### Options\n\n- **param_eval\u003e**: Param name to eval. (string, required)\n\n**NOTE**: \n* This operator is a workaround for the issue: [Exported vars are not evaluated recursively in the context of nested params](https://github.com/treasure-data/digdag/issues/862)\n* Use single quote`'` instead of double quote`\"` for injecting javascript code to avoide `SyntaxError: \u003cfunction\u003e: Missing close quote` error: [Fails param_eval\u003e: when using custom variables in nested variables](https://github.com/civitaspo/digdag-operator-param/issues/14)\n\n# Development\n\n## Run an Example\n\n### build\n\n```sh\n./gradlew publish\n```\n\nArtifacts are build on local repos: `./build/repo`.\n\n### run an example\n\n```sh\n./example/run.sh\n```\n\n## Dependencies\nThis project's dependencies are managed by the gradle [dependency locking feature](https://docs.gradle.org/current/userguide/dependency_locking.html).\n\n```shell\n# Update the dependencies\n./gradlew dependencies --write-locks\n\n# Update the paticular dependency\n./gradlew dependencies --update-locks org.junit.jupiter:junit-jupiter-api\n```\n\n## (TODO) Run Tests\n\n```sh\n./gradlew test\n```\n\n# ChangeLog\n\n[CHANGELOG.md](./CHANGELOG.md)\n\n# License\n\n[Apache License 2.0](./LICENSE.txt)\n\n# Author\n\n@civitaspo\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivitaspo%2Fdigdag-operator-param","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcivitaspo%2Fdigdag-operator-param","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivitaspo%2Fdigdag-operator-param/lists"}