From 9a7c47dd2e75b3499ca38854ab2ad770afb50d68 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Wed, 8 Nov 2023 04:46:19 +0000 Subject: [PATCH] feat: handle pipeline arguments --- README.md | 2 +- ci.ts | 2 +- deno.lock | 151 +++++++++++++++++++++- deps.ts | 2 + example/.fluentci/src/dagger/jobs.ts | 2 + example/.fluentci/src/dagger/list_jobs.ts | 4 +- 6 files changed, 158 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a58c077..2f3512d 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ test(src: String!): String You can also use this pipeline programmatically : ```ts -import { test, build } from "https://pkg.fluentci.io/bazel_pipeline@v0.3.1/mod.ts"; +import { test, build } from "https://pkg.fluentci.io/bazel_pipeline@v0.4.0/mod.ts"; await test(); await build(); diff --git a/ci.ts b/ci.ts index d1e48e7..1671841 100644 --- a/ci.ts +++ b/ci.ts @@ -1,7 +1,7 @@ import { test, build, -} from "https://pkg.fluentci.io/bazel_pipeline@v0.3.1/mod.ts"; +} from "https://pkg.fluentci.io/bazel_pipeline@v0.4.0/mod.ts"; await test(); await build(); diff --git a/deno.lock b/deno.lock index 584cbf4..8722298 100644 --- a/deno.lock +++ b/deno.lock @@ -31,6 +31,8 @@ "https://cdn.jsdelivr.net/gh/tsirysndr/tar@v0.1.1/deps.ts": "096395daebc7ed8a18f0484e4ffcc3a7f70e50946735f7df9611a7fcfd8272cc", "https://cdn.jsdelivr.net/gh/tsirysndr/tar@v0.1.1/mod.ts": "e269d71c72ae68e82c1960e5db2a0c7419c97c9683ef717de0ab75d90f364713", "https://cdn.jsdelivr.net/gh/tsirysndr/tar@v0.1.1/src/tar.ts": "9b02eaaa784b225ad7a23d2769cd492adf113ea7c11c02e3646849e98f4ae43b", + "https://cdn.skypack.dev/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=imports/optimized/lodash.js": "10c4df47937ffc78548d136dd535a021df5f57182a653260d715c0690dd22978", + "https://cdn.skypack.dev/lodash": "8280de0b3efd87f06ea0eb330d15b8de32c059556023b8c6524e9eb9e4844dc0", "https://deno.land/std@0.129.0/_util/assert.ts": "e94f2eb37cebd7f199952e242c77654e43333c1ac4c5c700e929ea3aa5489f74", "https://deno.land/std@0.129.0/_util/os.ts": "49b92edea1e82ba295ec946de8ffd956ed123e2948d9bd1d3e901b04e4307617", "https://deno.land/std@0.129.0/archive/tar.ts": "35ea1baddec7988cc4034765a2cee7613bc8074bd40940d3f5e98f63070a716a", @@ -149,7 +151,17 @@ "https://deno.land/std@0.203.0/path/to_file_url.ts": "00e6322373dd51ad109956b775e4e72e5f9fa68ce2c6b04e4af2a6eed3825d31", "https://deno.land/std@0.203.0/path/to_namespaced_path.ts": "1b1db3055c343ab389901adfbda34e82b7386bcd1c744d54f9c1496ee0fd0c3d", "https://deno.land/std@0.203.0/path/win32.ts": "8b3f80ef7a462511d5e8020ff490edcaa0a0d118f1b1e9da50e2916bdd73f9dd", + "https://deno.land/std@0.205.0/assert/assert.ts": "9a97dad6d98c238938e7540736b826440ad8c1c1e54430ca4c4e623e585607ee", + "https://deno.land/std@0.205.0/assert/assertion_error.ts": "4d0bde9b374dfbcbe8ac23f54f567b77024fb67dbb1906a852d67fe050d42f56", + "https://deno.land/std@0.205.0/flags/mod.ts": "0948466fc437f017f00c0b972a422b3dc3317a790bcf326429d23182977eaf9f", "https://deno.land/std@0.52.0/fmt/colors.ts": "ec9d653672a9a3c7b6eafe53c5bc797364a2db2dcf766ab649c1155fea7a80b2", + "https://deno.land/x/android_pipeline@v0.2.3/mod.ts": "60bbaf1da28b5324666c42469dc19ca15114956f98c2854a02073ed83c02284f", + "https://deno.land/x/android_pipeline@v0.2.3/src/dagger/index.ts": "3be5c8337fbf12349b562a105808167654e53def38462d436c18ac5e1ef9022c", + "https://deno.land/x/android_pipeline@v0.2.3/src/dagger/jobs.ts": "d6fd2d9aa3e03479814c689c0f1d3332a8428df3275aa9857e54933b7ce8ab99", + "https://deno.land/x/android_pipeline@v0.2.3/src/dagger/pipeline.ts": "0c7492c23ef3e722378329f6d4590961bd6c1ad814ca70663518ea1c7c5cf0f1", + "https://deno.land/x/android_pipeline@v0.2.3/src/gitlab/index.ts": "d66e6187eebf8d2423c86d02eb199752ab35c7f484b665aefaf675ee79670e17", + "https://deno.land/x/android_pipeline@v0.2.3/src/gitlab/jobs.ts": "c14bbd6998fe8594be8824f1b7243115f3b67600a81899ab2f7904fa275a7efb", + "https://deno.land/x/android_pipeline@v0.2.3/src/gitlab/pipeline.ts": "71f91ead5644cec29edbb4e89524183fdb40e3d40c276d656eb021f600c1355b", "https://deno.land/x/crc32@v0.2.0/mod.ts": "de7a3fa2d4ef24b96fc21e1cc4d2d65d1d2b1dcea92f63960e3e11bfa82df0fa", "https://deno.land/x/fluent_aws_codepipeline@v0.2.3/mod.ts": "79cc758901d20a3573d7e3cc2db9f0a5fe56833f4d9befcedc072b94d542eec7", "https://deno.land/x/fluent_aws_codepipeline@v0.2.3/src/buildspec.ts": "fb07cbbf9473586cea66c0c508412080c2d4ba4e7f4ea0985661afeed445710b", @@ -167,12 +179,20 @@ "https://deno.land/x/fluent_github_actions@v0.2.1/src/step_spec.ts": "b399949d1fd9c45873cdda70d82c92e3d9d96ba9a1d5749f3010a1f242b20e35", "https://deno.land/x/fluent_github_actions@v0.2.1/src/workflow.ts": "c9e3b7b3a59f7edff958eae8f27a8542f2a24889ea27c8aa016d0c0b0ca416c6", "https://deno.land/x/fluent_github_actions@v0.2.1/src/workflow_spec.ts": "b5c696dc70ee3f777a565197c6a3a379d87d026e12d59942fef5b9dc72124c3a", + "https://deno.land/x/fluent_gitlab_ci@v0.3.2/mod.ts": "3becefe569f5c9814dffa1b534794a42b948481753a5903fa1b48d5337206ced", + "https://deno.land/x/fluent_gitlab_ci@v0.3.2/src/environment.ts": "f12ee4fb50e5100fccec29dc1d35aa430bfe8373e84286a8ab9f7b8e178f14e3", + "https://deno.land/x/fluent_gitlab_ci@v0.3.2/src/gitlabci.ts": "85d2335622c2def4a9554a9d8b8de4e62156f5d76d59a553e157bab4e6b6591f", + "https://deno.land/x/fluent_gitlab_ci@v0.3.2/src/gitlabci_spec.ts": "b60f40ecf26d243db2391aee70fdf71b133de3faaf789052020f58f98cf1b500", + "https://deno.land/x/fluent_gitlab_ci@v0.3.2/src/index.ts": "b5e374a24e3bca1d6fead0861f2c1b1e09e087a17e59297263f681ee71c972fe", + "https://deno.land/x/fluent_gitlab_ci@v0.3.2/src/job.ts": "a1ddf8d37ca33239de9d2c61f98835e585f6671748b37af8d647ebba5e1a9974", "https://deno.land/x/fluent_gitlab_ci@v0.4.2/mod.ts": "3becefe569f5c9814dffa1b534794a42b948481753a5903fa1b48d5337206ced", "https://deno.land/x/fluent_gitlab_ci@v0.4.2/src/environment.ts": "f12ee4fb50e5100fccec29dc1d35aa430bfe8373e84286a8ab9f7b8e178f14e3", "https://deno.land/x/fluent_gitlab_ci@v0.4.2/src/gitlabci.ts": "ef36465c41412ae94b919cfcb80b99ec1c04536dbf42ad09cd73abf3ea4d52a6", "https://deno.land/x/fluent_gitlab_ci@v0.4.2/src/gitlabci_spec.ts": "37f4ecef3ea414f57c54a360bc0178f5fad21b4a9db59d29d1961cd368febaed", "https://deno.land/x/fluent_gitlab_ci@v0.4.2/src/index.ts": "b5e374a24e3bca1d6fead0861f2c1b1e09e087a17e59297263f681ee71c972fe", "https://deno.land/x/fluent_gitlab_ci@v0.4.2/src/job.ts": "65a5be7f5816846919907aab00530044b571570a54a8a0bc967f4269a2ce99b7", + "https://deno.land/x/nix_installer_pipeline@v0.3.3/src/dagger/steps.ts": "05ef2931080fe9771f27f322a6ace921bf3df8143b5599cd92409fe25568e613", + "https://deno.land/x/nix_installer_pipeline@v0.3.6/src/dagger/steps.ts": "a34aea3753c7079de5877f592ce31f30d05d552155729ff3e695d77326405133", "https://deno.land/x/spinners@v1.1.2/mod.ts": "ed5b3562d4ea6c6887bc7e9844612b08a3bc3a3678ca77cc7dfdf461c362751e", "https://deno.land/x/spinners@v1.1.2/spinner-types.ts": "c67e6962a0c738aa57b4d3ad9fe06c8c0131f93360acbf95456f2ba200fd8826", "https://deno.land/x/spinners@v1.1.2/terminal-spinner.ts": "1cf0c38a423781734e2e538323c1992027830d741e90f0b81f532e5bc993d035", @@ -191,30 +211,84 @@ "https://deno.land/x/zod@v3.22.1/locales/en.ts": "a7a25cd23563ccb5e0eed214d9b31846305ddbcdb9c5c8f508b108943366ab4c", "https://deno.land/x/zod@v3.22.1/mod.ts": "64e55237cb4410e17d968cd08975566059f27638ebb0b86048031b987ba251c4", "https://deno.land/x/zod@v3.22.1/types.ts": "4edc1823385f446532c8c9f676d84550c6dc54b17135e34508576647d9612d0e", + "https://esm.sh/@dagger.io/dagger@0.8.4": "053a78de7a401ac4e2604e77a5521a45fbd192c1cfce05f413407dd4cc88f184", "https://esm.sh/@dagger.io/dagger@0.8.8": "615a37f0edf04b25a6efefe7ea8c4cb0f801830b5dbe0a57164919e16a3ef6e6", "https://esm.sh/graphql-tag@2.12.6": "6e93f81d26bddf63270317b4fce53a03747ec5322a26e5b78fb0abd098a1f6ea", "https://esm.sh/nanoid@4.0.2": "51031602a4d76c7dd62da9439016cdfd6d1121101e489925e4423d88bf8fa0e1", "https://esm.sh/stringify-tree@1.1.1": "4d0252ece34f52f7f312a6d270ed2714e57e1610f7a7f71c2fdceceb948e87b2", + "https://esm.sh/v128/*@dagger.io/dagger@0.8.4": "cd4d92549eba000cd17c622e144c7f63303fb8ab53872a59a901be123a202b74", + "https://esm.sh/v128/@dagger.io/dagger@0.8.4/X-ZS8q/denonext/dagger.mjs": "fea025664b2f809f86ed333e241f318d6352b1338020131b1b699850b0d9e433", + "https://esm.sh/v128/adm-zip@0.5.10": "d9c54d6d2dd788462781a57d923295bd79304e6fd74b242fd4b30e35b39c5dcf", + "https://esm.sh/v128/adm-zip@0.5.10/denonext/adm-zip.mjs": "07a9731547905e0ca55ae917e1969d7f6d04fb3773f906ce3306891337eb4849", + "https://esm.sh/v128/chownr@2.0.0/denonext/chownr.mjs": "30b8f17084dfbe475a5052b615f706b06ddd17dca0535103340d485c6b94e952", "https://esm.sh/v128/cross-fetch@3.1.8/denonext/cross-fetch.mjs": "8fba9e7c3fbaf0d2168beb63ce0cd21b5bfbfbd77e2fcbf8d957d533a71222f6", + "https://esm.sh/v128/cross-spawn@7.0.3/denonext/cross-spawn.mjs": "0569a26e7ad4b3376516cbc9b1942e10961a58030eadcea8c848e6b956eb355c", + "https://esm.sh/v128/data-uri-to-buffer@4.0.1/denonext/data-uri-to-buffer.mjs": "70ef987b1da58391495ecfad9888d996469224faf3cd996d81dc2e059feb9f31", + "https://esm.sh/v128/env-paths@3.0.0": "8400fb23319be9b30d7b40d1c865541c5b3c7726cdf9b74000bc0f1678d52ecf", + "https://esm.sh/v128/env-paths@3.0.0/denonext/env-paths.mjs": "77984a05eb16450087f25060a070ed500ec546719d471143e16d976ca73ca956", + "https://esm.sh/v128/execa@7.1.1": "a40c7030df81ab0847a5d844f4c5c6420af973dff05fef88e53cbb9b8667fdc2", + "https://esm.sh/v128/execa@7.1.1/denonext/execa.mjs": "9d5943544c0df3761b52f2c095f89a03ca6c028d818a8f0475ff883b0408f154", + "https://esm.sh/v128/fetch-blob@3.2.0/denonext/fetch-blob.mjs": "0531568b36c0f6db3e9825fbb2d08dee51100eb675c2bf1d98d6971a92010721", + "https://esm.sh/v128/fetch-blob@3.2.0/denonext/file.js": "fd82828163a4e7bdc15190d8c3dbfd92f93274d05bd7f7f5ab81093e3ad7e9c2", + "https://esm.sh/v128/fetch-blob@3.2.0/denonext/from.js": "7d3258c7960755497f90879806f0b815d5e564c2ac1523238af5cb9552ff5c45", + "https://esm.sh/v128/formdata-polyfill@4.0.10/denonext/esm.min.js": "b6d65a204e81eca699d9eb6f867e9efffa42db39a8f161690915a89e5eb1766f", + "https://esm.sh/v128/fs-minipass@2.1.0/denonext/fs-minipass.mjs": "74b00283d556b281bdfd6a669576d852f2c43702043c411985f8f8188d208c5d", + "https://esm.sh/v128/get-stream@6.0.1/denonext/get-stream.mjs": "a947a16f8cb3052fd654a84f8b36b40ce96b6a5acfb3ad4ab69d814bcf3351fb", "https://esm.sh/v128/graphql-request@6.1.0": "17f00c323eb825811ce14e2b0e88a0c873acb666c382ac963d1edeb03e01f372", "https://esm.sh/v128/graphql-request@6.1.0/denonext/graphql-request.mjs": "0b15f49d44489423ae6f06004725b6d050b6359da4969e6569bd6ad45065bd94", + "https://esm.sh/v128/graphql-tag@2.12.6": "5bfa27da9c9918fb52a01b8579891e804e0365d91118df1f2e0957a72dacdc39", + "https://esm.sh/v128/graphql-tag@2.12.6/denonext/graphql-tag.mjs": "331d09949efc4ac60c84a69b52a7da8b333210493900e54953ae4604c9874527", "https://esm.sh/v128/graphql@16.7.1/denonext/graphql.mjs": "418ad7c07b0f2d687f33b6275d3b5f317f4afbef1f462f318229f458dff45416", + "https://esm.sh/v128/human-signals@4.3.1/denonext/human-signals.mjs": "3889110cedd907804443d018cffe0a1d892d5e7467661376caf967feff55cbe9", + "https://esm.sh/v128/is-stream@3.0.0/denonext/is-stream.mjs": "5c8b65f2fa051c4b18e88bbae11dac8bba9caf57752577d69bcea86d1f05c5b7", + "https://esm.sh/v128/isexe@2.0.0/denonext/isexe.mjs": "3cfefd270d1bfdfb864ee98dbb8f41d150cbf480925158f4a8f0ade8a9e17d6c", + "https://esm.sh/v128/merge-stream@2.0.0/denonext/merge-stream.mjs": "2c2af22401c294158d6bff659d157e3d2c028c218cc1bd2246534a45a4c03c61", + "https://esm.sh/v128/mimic-fn@4.0.0/denonext/mimic-fn.mjs": "10bcf0f2f20cbbba0c289ef7bf4d2422639bbc1c36c247be876afd6fe2d67138", + "https://esm.sh/v128/minipass@3.3.6/denonext/minipass.mjs": "59bbe430514455e78cb30c389b21af66efb2bf010cda071820a17d8c76d0d1cf", + "https://esm.sh/v128/minipass@5.0.0/denonext/minipass.mjs": "de0e049728f8c387b58c86439eb9d69a16b6a88756a6bc694e2fecbd7fd00401", + "https://esm.sh/v128/minizlib@2.1.2/denonext/minizlib.mjs": "0d919b6a0c60d5a31e14d748ff9d62aeae2923b604bcc6a22f90fa4bbd400d68", + "https://esm.sh/v128/mkdirp@1.0.4/denonext/mkdirp.mjs": "ee129b32e55dd8bede6b1bbd1978f7775fa5e2720d5a7ae07bf1e8c99abd77c7", + "https://esm.sh/v128/node-color-log@10.0.2": "05a277987c64153af1252167135076155fdc6b39ca260b2bdc39750da12d2a2d", + "https://esm.sh/v128/node-color-log@10.0.2/denonext/node-color-log.mjs": "2504391bd0ce1dd4c2bf0ed0b839b8a3ad84c028d9dd17cc58dccd2e14dacfde", + "https://esm.sh/v128/node-domexception@1.0.0/denonext/node-domexception.mjs": "bb35ba54c1a2b35870618876c0c96310a28ae58aecff33c8eed58a582e270ff4", + "https://esm.sh/v128/node-fetch@3.3.1": "916dcee177a69fb0e46970c528cb66fcd4973488f861844c0a235bfc645b0506", + "https://esm.sh/v128/node-fetch@3.3.1/denonext/node-fetch.mjs": "dc3a8f1f2fc9eb26d0d33e49f3750acc265d51a1a54bbd670c5d9f640b633a93", + "https://esm.sh/v128/node-fetch@3.3.1/denonext/src/utils/multipart-parser.js": "713b1b8cbafc4bfb7358debeb35d507e0d2328f0a28b8a2a7d79a3e5e4f5e5b8", + "https://esm.sh/v128/npm-run-path@5.1.0/denonext/npm-run-path.mjs": "3540b8c2dd1430f10d580f323f3a51aa30094da27a9220cce03ce69884b163bb", + "https://esm.sh/v128/onetime@6.0.0/denonext/onetime.mjs": "6e362222575d815f37fb813168d7069dd6a0f6bb6f972ed54d1bccb0f9fb3e1b", + "https://esm.sh/v128/original-fs@1.2.0/denonext/original-fs.mjs": "2b1098818e54d2c6748ff5b0dd9ea5f6a61b4b6d0f63fb625f21773d11cfc667", + "https://esm.sh/v128/path-key@3.1.1/denonext/path-key.mjs": "add83c631278b7df9b33ae84e41142db88bb291295bcc27eb4e77a1cbdfa71d0", + "https://esm.sh/v128/path-key@4.0.0/denonext/path-key.mjs": "2c2e3922bd0e6e414fa2752ff800bdc6b9208035ce797fa22e49b859f8259417", + "https://esm.sh/v128/shebang-command@2.0.0/denonext/shebang-command.mjs": "404e0fb09a782ca9495d53c721bb84b673b7b2e1054e021852143a6b91ca0e4f", + "https://esm.sh/v128/shebang-regex@3.0.0/denonext/shebang-regex.mjs": "03983ba59dd2cba9402935e21b46d05f5249364cba9f5757aef23c6c2fea65b9", + "https://esm.sh/v128/signal-exit@3.0.7/denonext/signal-exit.mjs": "2a176e5f9b351fa8057213c627a1503d63bf308b64447ef47f1ca6fbb2a91c81", + "https://esm.sh/v128/strip-final-newline@3.0.0/denonext/strip-final-newline.mjs": "03d9be4e8a249d63cbbddeb2fb675a1bbbcb335283e604d4ce56c88c90e6f102", + "https://esm.sh/v128/tar@6.1.15": "0460339f8aba5f287e8bebe258fe3fe13cb12f85820693f25724f0d98ef1258e", + "https://esm.sh/v128/tar@6.1.15/denonext/tar.mjs": "6194d892de8457b3b1f11d5cbacda1d540b453b45e8cb9f5f610abfb3e490b65", + "https://esm.sh/v128/tslib@2.6.0/denonext/tslib.mjs": "2215292e6fcf28a7a081eee911f127bb3c44cdd61ff0651e3e384d7a49b4e42b", + "https://esm.sh/v128/web-streams-polyfill@3.2.1/denonext/dist/ponyfill.es2018.js": "a2edb52a93494cda06386b3d6a168016b366e78f02c5eff1f94a0240be12ac96", + "https://esm.sh/v128/which@2.0.2/denonext/which.mjs": "86bf76e4937edb7fa3464d7bb9a426ef273684d1cefbec5ba5f1bdcb5cafff91", + "https://esm.sh/v128/yallist@4.0.0/denonext/yallist.mjs": "61f180d807dda50bac17028eda05d5722a3fecef6e98a9064e2353ea6864fd82", "https://esm.sh/v128/yaml@2.3.1": "8ef3aee065e93b03cebf8fd5a3418bc30131344b7f2b8c8ae27bf9f277416087", "https://esm.sh/v128/yaml@2.3.1/denonext/yaml.mjs": "71f677b4bfc69271af9d98db5194e354f9a1863955e208e26d32a9ef78bd89f5", "https://esm.sh/v131/yaml@2.3.1": "1fe2490feb3d9c6d2c71c64dbdbed90acd4164b00628b3c68a311b6731ca38b5", "https://esm.sh/v131/yaml@2.3.1/denonext/yaml.mjs": "71f677b4bfc69271af9d98db5194e354f9a1863955e208e26d32a9ef78bd89f5", + "https://esm.sh/v133/@dagger.io/dagger@0.8.4/denonext/dagger.mjs": "27877de9a0ada44a87ada6c4afde2f07ebfa39501e0eb983a22b5e530b548391", "https://esm.sh/v133/@dagger.io/dagger@0.8.8/denonext/dagger.mjs": "c4bd80a72add877450ef029ab71091f862f02af8ebc7c4c7f5bb6aab1854095f", "https://esm.sh/v133/adm-zip@0.5.10/denonext/adm-zip.mjs": "9ccca01e6dea77f3c20386125c0eea2a811aa0f9b73243517b747264df8af046", "https://esm.sh/v133/chownr@2.0.0/denonext/chownr.mjs": "d7282b2612a9f13c62084c76fc72cdfb20503bccce959178b77b6def14d3ffd2", "https://esm.sh/v133/cross-fetch@3.1.8/denonext/cross-fetch.mjs": "8fba9e7c3fbaf0d2168beb63ce0cd21b5bfbfbd77e2fcbf8d957d533a71222f6", "https://esm.sh/v133/cross-spawn@7.0.3/denonext/cross-spawn.mjs": "0a698bfa213c75e5d20176a3f2f65870d31cd26745451d5f56c58e08df138118", "https://esm.sh/v133/env-paths@3.0.0/denonext/env-paths.mjs": "77984a05eb16450087f25060a070ed500ec546719d471143e16d976ca73ca956", + "https://esm.sh/v133/execa@7.2.0/denonext/execa.mjs": "ffc76bbf7aef8ac5ce352310b9fefe0595eec43f2f3cf72cdd9e7bad26ce2cb1", "https://esm.sh/v133/execa@8.0.1/denonext/execa.mjs": "775e244075c8f23a4caf786116722314a5f2839ee135dba7fde444fc67d5e643", "https://esm.sh/v133/fs-minipass@2.1.0/denonext/fs-minipass.mjs": "de8b7228c151f04326a852ce57655d36bf9171f8efcd212e34ac8bce3fbd84a0", + "https://esm.sh/v133/get-stream@6.0.1/denonext/get-stream.mjs": "40659bc61ff2e49a7acf20f46d53c9b09b6d594f15bce414257f377f6f3934a7", "https://esm.sh/v133/get-stream@8.0.1/denonext/get-stream.mjs": "b8ab640bf2638c1ae704a217b79e0a56e7a1f97bb48bbe40d723d5ea87eb0ecb", "https://esm.sh/v133/graphql-request@6.1.0/denonext/graphql-request.mjs": "7206b27d14333f19f8d2aa3615a81f9e3035f4d33b7a9edff44f990e69fe1964", "https://esm.sh/v133/graphql-tag@2.12.6/denonext/graphql-tag.mjs": "af56d5f8b96e688f433ccca87d8a2bfcf171686e7f7a3b27cde61df816ad8472", "https://esm.sh/v133/graphql@16.8.1/denonext/graphql.mjs": "585b84022623b931e27a7a8134cd24ec50b33ea12fd18b43254527628a0fddac", + "https://esm.sh/v133/human-signals@4.3.1/denonext/human-signals.mjs": "3889110cedd907804443d018cffe0a1d892d5e7467661376caf967feff55cbe9", "https://esm.sh/v133/human-signals@5.0.0/denonext/human-signals.mjs": "8d8663d92280b1ed15bb1b1a0a79601e17f6b165335e85f94c40e56129542077", "https://esm.sh/v133/is-stream@3.0.0/denonext/is-stream.mjs": "5c8b65f2fa051c4b18e88bbae11dac8bba9caf57752577d69bcea86d1f05c5b7", "https://esm.sh/v133/isexe@2.0.0/denonext/isexe.mjs": "4675d9d53a332f096efd344cb1418dbda8e6f2effc8a5c81edd43cdd56636be7", @@ -235,6 +309,7 @@ "https://esm.sh/v133/path-key@4.0.0/denonext/path-key.mjs": "2c2e3922bd0e6e414fa2752ff800bdc6b9208035ce797fa22e49b859f8259417", "https://esm.sh/v133/shebang-command@2.0.0/denonext/shebang-command.mjs": "23d8e6099e8d3927b5ea0e396d3da92e082dfa32f27d36df9e892a8653b08437", "https://esm.sh/v133/shebang-regex@3.0.0/denonext/shebang-regex.mjs": "03983ba59dd2cba9402935e21b46d05f5249364cba9f5757aef23c6c2fea65b9", + "https://esm.sh/v133/signal-exit@3.0.7/denonext/signal-exit.mjs": "bf418caffe54af9f76da6c7a4998b093dd95740016482c3ababa83da7fb1bb6c", "https://esm.sh/v133/signal-exit@4.1.0/denonext/signal-exit.mjs": "c450b9024df3b59ded71e7b52aada1ac4b3856aad93e9d64bbc6ea3cdd181824", "https://esm.sh/v133/stringify-tree@1.1.1/denonext/stringify-tree.mjs": "7640f153ff571180467c1087934154aa2a96acba9e17d5782daeb6e1f6b45759", "https://esm.sh/v133/strip-final-newline@3.0.0/denonext/strip-final-newline.mjs": "03d9be4e8a249d63cbbddeb2fb675a1bbbcb335283e604d4ce56c88c90e6f102", @@ -244,13 +319,87 @@ "https://esm.sh/v133/yallist@4.0.0/denonext/yallist.mjs": "61f180d807dda50bac17028eda05d5722a3fecef6e98a9064e2353ea6864fd82", "https://esm.sh/v133/yaml@2.3.1/denonext/yaml.mjs": "71f677b4bfc69271af9d98db5194e354f9a1863955e208e26d32a9ef78bd89f5", "https://esm.sh/yaml@v2.3.1": "1eebb55f799726dfa0698314b3ba178bc478cba64b31c8309284899c96f8ff8f", + "https://nix.fluentci.io/v0.5.1/deps.ts": "d2fee07fcb79b609f64f988990ad5d67c7bf17455f75dcbf1b3bbfa5de7c73b2", + "https://nix.fluentci.io/v0.5.1/src/dagger/steps.ts": "b766f4fa9624a032e7af884a5ca47bc666a529c4a472d38b74b55ca0d63cf81d", "https://nix.fluentci.io/v0.5.2/deps.ts": "6ccc8510c72998a52c24bc02c848b669413b5ef1d15dccd7e03a25dd0e408564", "https://nix.fluentci.io/v0.5.2/src/dagger/steps.ts": "b766f4fa9624a032e7af884a5ca47bc666a529c4a472d38b74b55ca0d63cf81d", + "https://nix.fluentci.io/zenith/deps.ts": "a8fd3aa32faea5de2779cc6494471b4fd9588f039d199ff1a1ff1b00343aef26", + "https://nix.fluentci.io/zenith/src/dagger/steps.ts": "b766f4fa9624a032e7af884a5ca47bc666a529c4a472d38b74b55ca0d63cf81d", + "https://pkg.fluentci.io/android_fastlane_pipeline@v0.1.4/src/dagger/jobs.ts": "48343b7fc24f6cc0bdb8e25e36d68c22106f76ff088f463fdac27be750bb5aaa", + "https://pkg.fluentci.io/android_fastlane_pipeline@v0.1.4/src/dagger/lib.ts": "f8856530be9478f01a3e1a9c3ba52dc9ae089ac229cc4cb19f9d84f3ff52199d", + "https://pkg.fluentci.io/android_pipeline@v0.7.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/android_pipeline@v0.7.1/src/dagger/jobs.ts": "1465aebbcaee75163b7a043eb4fe71c9104f88740ad3e70a7a35404bd88ffdf9", + "https://pkg.fluentci.io/atlas_pipeline@v0.3.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/atlas_pipeline@v0.3.1/src/dagger/jobs.ts": "65808bbc6284573fc225559200686a17e2212d7bcdd02ff1e6b52f37a29a9c20", + "https://pkg.fluentci.io/aws_sls_pipeline@v0.1.0/deps.ts": "f02f2b681ce3183437c2cf7508983ee7d78b9362fc66890ea3c4e45f164c962a", + "https://pkg.fluentci.io/aws_sls_pipeline@v0.1.0/src/dagger/jobs.ts": "2a7c12c667bdce6d27402d82aaaeef91dd527180dc4a3f7d3039ab7d0f57c012", + "https://pkg.fluentci.io/base_pipeline@v0.5.2/deps.ts": "f02f2b681ce3183437c2cf7508983ee7d78b9362fc66890ea3c4e45f164c962a", + "https://pkg.fluentci.io/base_pipeline@v0.5.2/src/dagger/jobs.ts": "0f2606167e7ebcbb3690f89079c2091f2bc2fbcf4a48021281a1de33d3914adf", + "https://pkg.fluentci.io/base_pipeline@v0.5.3/deps.ts": "f02f2b681ce3183437c2cf7508983ee7d78b9362fc66890ea3c4e45f164c962a", + "https://pkg.fluentci.io/base_pipeline@v0.5.3/src/dagger/jobs.ts": "0f2606167e7ebcbb3690f89079c2091f2bc2fbcf4a48021281a1de33d3914adf", + "https://pkg.fluentci.io/bazel_pipeline@v0.3.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/bazel_pipeline@v0.3.1/src/dagger/jobs.ts": "f696f2e2957c01bda8b75b3c399f1acea2e1a6dc18a1191974180a765ee6da3c", + "https://pkg.fluentci.io/buck_pipeline@v0.1.3/deps.ts": "5dec3b3f1c2e82e2e902da1cd399700a582e0d6b1f0ac8f711f536f908fa9ba1", + "https://pkg.fluentci.io/buck_pipeline@v0.1.3/src/dagger/jobs.ts": "4ff24d36cfd527329bfd2ebdbbec329f0ce3df8af7ee2806f5e91e7cfad8e445", + "https://pkg.fluentci.io/buf_pipeline@v0.3.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/buf_pipeline@v0.3.1/src/dagger/jobs.ts": "e23aa926aa1d3b8fd9a9586569051a44de12306c520be210da670ecee33fd985", + "https://pkg.fluentci.io/bun_pipeline@v0.3.3/deps.ts": "0d5ea00c38080b8066d7ccf6a7fe9498db1f0013ca960733ed9800118e4f171d", + "https://pkg.fluentci.io/bun_pipeline@v0.3.3/src/dagger/jobs.ts": "082f98168304b22b9baa17b7959037771912a7d08a289dd9af13461c0a9d27de", + "https://pkg.fluentci.io/chromatic_pipeline@v0.6.6/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/chromatic_pipeline@v0.6.6/src/dagger/jobs.ts": "29dd9b91d9223e2c715d646d4b488684ba8ac229eca5a5516f5572de2fe9cb6f", + "https://pkg.fluentci.io/clojure_pipeline@v0.4.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/clojure_pipeline@v0.4.1/src/dagger/jobs.ts": "53b080a9af528df08c25356e7683b53cb879d00243b99cf58c8cc7c7cb3a321e", + "https://pkg.fluentci.io/cloudflare_pipeline@v0.6.4/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/cloudflare_pipeline@v0.6.4/src/dagger/jobs.ts": "24751e8ef004e517152618ee9807a7ff659ec466a31281316b30807fd02ac6c2", + "https://pkg.fluentci.io/deno_pipeline@v0.5.5/deps.ts": "b019c28544ddd059db936f7afbcc62cfcf98ef865402d0c40542730460334082", + "https://pkg.fluentci.io/deno_pipeline@v0.5.5/src/dagger/jobs.ts": "b483a2cf2ec94e9e9763a5c9b5e6ad93d12bdb2d5d3fd005fb0dc1a4d5a5e1a9", + "https://pkg.fluentci.io/railway_pipeline@v0.6.0/deps.ts": "e7ccdc7bef18f5e7600d13aa732f779564ac5477efc89e637d8e012148b5b11a", + "https://pkg.fluentci.io/railway_pipeline@v0.6.0/src/dagger/jobs.ts": "97dd2151d82ff72c0b765cdab0223f9a855fa5c98f948a06a9f9c8560fe5207a", + "https://pkg.fluentci.io/ruby_pipeline@v0.7.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/ruby_pipeline@v0.7.1/src/dagger/jobs.ts": "70fda136fdce1ea611474f10483ad0d2f554b4c5398c106bb979e7b56e6ca753", + "https://pkg.fluentci.io/rust_pipeline@v0.6.3/deps.ts": "395058096336c6f1f2de401e767e707fef1922b4e15606fbc01505cea6028f33", + "https://pkg.fluentci.io/rust_pipeline@v0.6.3/src/dagger/jobs.ts": "3da68613b838754f493334bc26f2e4e3da5e0130498c00ff6c6f147e15f867ca", + "https://pkg.fluentci.io/shuttle_pipeline@v0.6.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/shuttle_pipeline@v0.6.1/src/dagger/jobs.ts": "f265b6764b296e4f59bd14775c826c1243f9b90b0e2ae3eeccc154411ac57cba", + "https://pkg.fluentci.io/snyk_pipeline@v0.2.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/snyk_pipeline@v0.2.1/src/dagger/jobs.ts": "5e57f616a02d15113e3f1e028b06a3144c5677a201aa3e8193969fa1c22824cb", + "https://pkg.fluentci.io/sonar_pipeline@v0.3.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/sonar_pipeline@v0.3.1/src/dagger/jobs.ts": "5fc615f12ca5293bc609f2fa238bad22932b7085ca1c88a695e047db8124da38", + "https://pkg.fluentci.io/spin_pipeline@v0.6.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/spin_pipeline@v0.6.1/src/dagger/jobs.ts": "47319dfd3791be02b006377fca0c8902bca4f8b377acee97ddb07db6c435792b", + "https://pkg.fluentci.io/supabase_pipeline@v0.1.0/deps.ts": "f02f2b681ce3183437c2cf7508983ee7d78b9362fc66890ea3c4e45f164c962a", + "https://pkg.fluentci.io/supabase_pipeline@v0.1.0/src/dagger/jobs.ts": "ae973d185be967fd3ad0f67fed5c26a500803c395b600c1790b2e7adc236da24", + "https://pkg.fluentci.io/swift_pipeline@v0.4.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/swift_pipeline@v0.4.1/src/dagger/jobs.ts": "bdc53b08f7aefa50bd3cb3029f87e613d2a0ce7dd8bd2490be967c0fa0c56a7f", + "https://pkg.fluentci.io/terraform_pipeline@v0.4.1/deps.ts": "395058096336c6f1f2de401e767e707fef1922b4e15606fbc01505cea6028f33", + "https://pkg.fluentci.io/terraform_pipeline@v0.4.1/src/dagger/jobs.ts": "f9c643959fd2f2bfa4be6e229a36a11daa71e6fd35ce30126176ce9106c85699", + "https://pkg.fluentci.io/terraform_pipeline@v0.4.1/src/dagger/lib.ts": "fc37ae6ec146dd4941d15b03ce27381bb1203db2d404133858c4d6f9b2953eea", + "https://pkg.fluentci.io/terragrunt_pipeline@v0.4.1/deps.ts": "64ae52467d1156c367c1176e547a8c1deffdef7378bff87d5f4aeb3b7f6b3b54", + "https://pkg.fluentci.io/terragrunt_pipeline@v0.4.1/src/dagger/jobs.ts": "8b84791482ebef5392c64b5aa7682bdbd0b1dbae6f2e580768ef399792ae0e54", + "https://pkg.fluentci.io/terragrunt_pipeline@v0.4.1/src/dagger/lib.ts": "fc37ae6ec146dd4941d15b03ce27381bb1203db2d404133858c4d6f9b2953eea", + "https://pkg.fluentci.io/trivy_pipeline@v0.2.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/trivy_pipeline@v0.2.1/src/dagger/jobs.ts": "f5f8099e385db6191ccdac94cbfcd6a91f394ec1cc3745e29509148db29e1b9e", + "https://pkg.fluentci.io/wasmer_pipeline@v0.1.0/deps.ts": "600df3692e75ef54476fe24f3360ff7601f43fd63b4d7bc94c414ab7e6539c74", + "https://pkg.fluentci.io/wasmer_pipeline@v0.1.0/src/dagger/jobs.ts": "b49fad62c857435a3162ae8f7ef1efb2a06c3eabca3248961627ca600a8e2a42", + "https://pkg.fluentci.io/zig_pipeline@v0.3.1/deps.ts": "32213e382c22efd5705918dd54a1c6ba3a6571e097e82e10b9925d1eef0fd8d9", + "https://pkg.fluentci.io/zig_pipeline@v0.3.1/src/dagger/jobs.ts": "b4ae76c1c8692465ca3ea06946e7393883f3298d97d3bd34b72443437cc88832", + "https://sdk.fluentci.io/v0.1.9/deps.ts": "1b036b7614a602b11e062a6911f26a6e2ac4e470cc74ac230125afd466cc77ea", + "https://sdk.fluentci.io/v0.1.9/mod.ts": "a3c03bdb97c5a3b998c7c9f616c7b00d4268013c3b16e8a90c1a36a85529d841", + "https://sdk.fluentci.io/v0.1.9/src/client.ts": "a8dd54861feccd11a53df39b2d45bfb3b2a8a3dff509f5700c41b517d4dff44d", + "https://sdk.fluentci.io/v0.1.9/src/connect.ts": "1bb42b4e0c5073bb2125b90f1d7d08a66fcad9ad8c453924b944be72d3a56c98", + "https://sdk.fluentci.io/v0.1.9/src/context.ts": "2939ff58d0a79d7377d5553e725c9a2110a0013035a5a57abe9a9a5da975c4ce", + "https://sdk.fluentci.io/v0.1.9/src/utils.ts": "394d131cfd465f0f3d8f876237f3bad1ab4dba73b9b7a396ee705d02aee40c16", "https://sdk.fluentci.io/v0.2.0/deps.ts": "20dd191afaf88662b82c2a42164afe6d06f2e79942f40ce07aa0972719fc858f", "https://sdk.fluentci.io/v0.2.0/mod.ts": "261ba81a4728f5def4e327a5cd80664ea8449515a2f4eea5f3f416acae39a1fa", "https://sdk.fluentci.io/v0.2.0/src/client.ts": "d350d4f59763e32a9b35f3f06f0b1058e5c8e5a3824e6d096cdaf3fc4332dcf6", "https://sdk.fluentci.io/v0.2.0/src/connect.ts": "4aff111c403cf78672384a10214a9885e08319dde579ec458f98a7bb04874101", "https://sdk.fluentci.io/v0.2.0/src/context.ts": "2939ff58d0a79d7377d5553e725c9a2110a0013035a5a57abe9a9a5da975c4ce", - "https://sdk.fluentci.io/v0.2.0/src/utils.ts": "5dcd6d83553930502069d067ff42bc44698e22c23426fdb78630c4b39769d308" + "https://sdk.fluentci.io/v0.2.0/src/utils.ts": "5dcd6d83553930502069d067ff42bc44698e22c23426fdb78630c4b39769d308", + "https://sdk.fluentci.io/z1/deps.ts": "20dd191afaf88662b82c2a42164afe6d06f2e79942f40ce07aa0972719fc858f", + "https://sdk.fluentci.io/z1/mod.ts": "261ba81a4728f5def4e327a5cd80664ea8449515a2f4eea5f3f416acae39a1fa", + "https://sdk.fluentci.io/z1/src/client.ts": "d350d4f59763e32a9b35f3f06f0b1058e5c8e5a3824e6d096cdaf3fc4332dcf6", + "https://sdk.fluentci.io/z1/src/connect.ts": "4aff111c403cf78672384a10214a9885e08319dde579ec458f98a7bb04874101", + "https://sdk.fluentci.io/z1/src/context.ts": "2939ff58d0a79d7377d5553e725c9a2110a0013035a5a57abe9a9a5da975c4ce", + "https://sdk.fluentci.io/z1/src/utils.ts": "5dcd6d83553930502069d067ff42bc44698e22c23426fdb78630c4b39769d308" } } diff --git a/deps.ts b/deps.ts index b6da9c3..e681ed0 100644 --- a/deps.ts +++ b/deps.ts @@ -26,6 +26,8 @@ export { join, resolve, } from "https://deno.land/std@0.203.0/path/mod.ts"; +export { parse } from "https://deno.land/std@0.205.0/flags/mod.ts"; +export { snakeCase, camelCase } from "https://cdn.skypack.dev/lodash"; export * as FluentGitlabCI from "https://deno.land/x/fluent_gitlab_ci@v0.4.2/mod.ts"; export * as FluentGithubActions from "https://deno.land/x/fluent_github_actions@v0.2.1/mod.ts"; diff --git a/example/.fluentci/src/dagger/jobs.ts b/example/.fluentci/src/dagger/jobs.ts index 0362553..67403ce 100644 --- a/example/.fluentci/src/dagger/jobs.ts +++ b/example/.fluentci/src/dagger/jobs.ts @@ -86,3 +86,5 @@ export const jobDescriptions: Record = { [Job.build]: "Build the project", [Job.test]: "Run tests", }; + +export const pipelineName = "bazel_pipeline"; diff --git a/example/.fluentci/src/dagger/list_jobs.ts b/example/.fluentci/src/dagger/list_jobs.ts index a1763a0..669bbe4 100644 --- a/example/.fluentci/src/dagger/list_jobs.ts +++ b/example/.fluentci/src/dagger/list_jobs.ts @@ -1,8 +1,8 @@ import { brightGreen, stringifyTree } from "../../deps.ts"; -import { runnableJobs, jobDescriptions, Job } from "./jobs.ts"; +import { runnableJobs, jobDescriptions, Job, pipelineName } from "./jobs.ts"; const tree = { - name: brightGreen("bazel_pipeline"), + name: brightGreen(pipelineName), children: (Object.keys(runnableJobs) as Job[]).map((job) => ({ name: jobDescriptions[job] ? `${brightGreen(job)} - ${jobDescriptions[job]}`