From c29b0f59e8ff3757654ad5c2057167c17be2cc94 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Thu, 2 Nov 2023 10:22:41 +0100 Subject: [PATCH 1/2] feat: upgrade unipipe cli dependencies Upgrade cliffy and deno. Due to this change command argument validation may be more strict than before --- .github/workflows/release-workflow.yml | 2 +- cli/deno.lock | 149 +++++++++++++++++++++++++ cli/test/parse-yaml.ts | 4 +- cli/unipipe/commands/browse.ts | 6 +- cli/unipipe/commands/generate.ts | 6 +- cli/unipipe/commands/git.ts | 6 +- cli/unipipe/commands/list.ts | 10 +- cli/unipipe/commands/show.ts | 23 ++-- cli/unipipe/commands/transform.ts | 5 +- cli/unipipe/commands/update.ts | 8 +- cli/unipipe/deps.ts | 27 +++-- cli/unipipe/dev_deps.ts | 6 +- 12 files changed, 204 insertions(+), 48 deletions(-) create mode 100644 cli/deno.lock diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml index 441352a..3637ba4 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow.yml @@ -102,7 +102,7 @@ jobs: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: "~1.21" + deno-version: "~1.37" - uses: actions/cache@v3 with: path: ~/.cache/deno # see https://deno.land/manual/linking_to_external_code diff --git a/cli/deno.lock b/cli/deno.lock new file mode 100644 index 0000000..aeaf684 --- /dev/null +++ b/cli/deno.lock @@ -0,0 +1,149 @@ +{ + "version": "2", + "remote": { + "https://deno.land/std@0.170.0/_util/asserts.ts": "d0844e9b62510f89ce1f9878b046f6a57bf88f208a10304aab50efcb48365272", + "https://deno.land/std@0.170.0/_util/os.ts": "8a33345f74990e627b9dfe2de9b040004b08ea5146c7c9e8fe9a29070d193934", + "https://deno.land/std@0.170.0/bytes/bytes_list.ts": "aba5e2369e77d426b10af1de0dcc4531acecec27f9b9056f4f7bfbf8ac147ab4", + "https://deno.land/std@0.170.0/bytes/concat.ts": "97a1274e117510ffffc9499c4debb9541e408732bab2e0ca624869ae13103c10", + "https://deno.land/std@0.170.0/bytes/copy.ts": "d14a58f188a997ee0d2ba696d0c82a42f4fb4b6705e90a4238b77d7644dae24c", + "https://deno.land/std@0.170.0/encoding/_yaml/dumper/dumper.ts": "5bd334372608a1aec7a2343705930889d4048f57a2c4d398f1d6d75996ecd0d3", + "https://deno.land/std@0.170.0/encoding/_yaml/dumper/dumper_state.ts": "3c1bc8519c1832f0f136856881b97f0b42f64b7968767dbc36b8b0b6cae963dc", + "https://deno.land/std@0.170.0/encoding/_yaml/error.ts": "6ca899f6d86c6979bce6d7c3a6a8e2a360b09d8b0f55d2e649bd1233604fb7c9", + "https://deno.land/std@0.170.0/encoding/_yaml/loader/loader.ts": "db200890459e9490b21d8ce657d9566327e1d1d20ed493393a1f04a51516436c", + "https://deno.land/std@0.170.0/encoding/_yaml/loader/loader_state.ts": "59124e56d864274ce4043dca8bf63e937c6e960e4ad120465e424b38f3469b2d", + "https://deno.land/std@0.170.0/encoding/_yaml/mark.ts": "7f67f43755b2602fefe52012eb3ab627880da97edd0f6c00f916ceb2ddb1b5d1", + "https://deno.land/std@0.170.0/encoding/_yaml/parse.ts": "f0c9b19957b78003e268cea886451d9eb5a71645308c1e64db05efb669ffb114", + "https://deno.land/std@0.170.0/encoding/_yaml/schema.ts": "db295ea6079fce9c38f4ee2ff1233c65db598b35b379551e445b558534b2e1fd", + "https://deno.land/std@0.170.0/encoding/_yaml/schema/core.ts": "bcb47a389d596369fbfccf73a6b221ac3ca5440149b4f6df1e707f2efc6854ef", + "https://deno.land/std@0.170.0/encoding/_yaml/schema/default.ts": "8b6bd9cb1cab07a3397e1cc3843edba6ad40d1bd15687c1f56cd977da834d984", + "https://deno.land/std@0.170.0/encoding/_yaml/schema/extended.ts": "e8b8976bcfda4c339709fba75787168fbc780458e52b9729386284d33f57e21a", + "https://deno.land/std@0.170.0/encoding/_yaml/schema/failsafe.ts": "7254a9ca0dff8f30377098622812e55c4535aaf352fecb4ec51939e596bd74e7", + "https://deno.land/std@0.170.0/encoding/_yaml/schema/json.ts": "2205d0d3d3377de56f92ac0f4a82bf561ea0d7b86eb195c9f0c32c7c7871d78f", + "https://deno.land/std@0.170.0/encoding/_yaml/schema/mod.ts": "6769df6082aceee9849f71168f4353ba4f92e4a2a5a429a422debac13a593d4e", + "https://deno.land/std@0.170.0/encoding/_yaml/state.ts": "374b8dc170417beccb364e543b25eef73576196f4a526836bb3a621b87a204a3", + "https://deno.land/std@0.170.0/encoding/_yaml/stringify.ts": "ec15035c1928f96f4e42c0a0e9f3082512e294fd6b8ff6a0403a3ee9282f69aa", + "https://deno.land/std@0.170.0/encoding/_yaml/type.ts": "95ad0cdbab49343b1527ebc7762c477726c34702438375be6781b44e03e9fcfc", + "https://deno.land/std@0.170.0/encoding/_yaml/type/binary.ts": "04c00f4e5c491c0c09e894dfd4e2ce312d5cf4bb2a9eb04c4a05d3a6fb17bfbe", + "https://deno.land/std@0.170.0/encoding/_yaml/type/bool.ts": "95c030531adc3d66a59979dc25c2fcdeb1f58ae40a91d6f9e9a537af0fd2b5a4", + "https://deno.land/std@0.170.0/encoding/_yaml/type/float.ts": "60e26783fd0e4472bd222e028323ff68e0c5ff37a9871298c676335d8574cf87", + "https://deno.land/std@0.170.0/encoding/_yaml/type/function.ts": "b5642dda5ef8d47c0325a2b89a022cbce3be45ba21f8c4f9202364d967c6b3e5", + "https://deno.land/std@0.170.0/encoding/_yaml/type/int.ts": "166cdd73d9473373e0e65e9f65d5fd8e96cbd303b58535e2ff2e049bb73dbefb", + "https://deno.land/std@0.170.0/encoding/_yaml/type/map.ts": "78bf5447d2e3f79d59bf7cb63a76ca7797854a0d8e2154c6fd35775c4e5c8c61", + "https://deno.land/std@0.170.0/encoding/_yaml/type/merge.ts": "094b272e6087c6aef39cd9617fa6603ec934e507faad6c276d293e2734f9b083", + "https://deno.land/std@0.170.0/encoding/_yaml/type/mod.ts": "b2f267dc0b0296cf8f6109aa129e2cf6d1e1f8c59f8903f0330c18749eca2d3c", + "https://deno.land/std@0.170.0/encoding/_yaml/type/nil.ts": "1988843acab56e99e883cd047c40cc7fb799b6d335f541f022ae3b914abcbe35", + "https://deno.land/std@0.170.0/encoding/_yaml/type/omap.ts": "fd3f2f9a8ae634996da84d021353ac8bf4b41e714f2711159d756d0e2f3aabd1", + "https://deno.land/std@0.170.0/encoding/_yaml/type/pairs.ts": "90736f87b6e39a144205a235d8851f7bebf6bb3835fd03742c30253d5ecd7ec5", + "https://deno.land/std@0.170.0/encoding/_yaml/type/regexp.ts": "a9e70491fa7ede8689b933d81142aa7635a253733a4df626bd479c55cb64222e", + "https://deno.land/std@0.170.0/encoding/_yaml/type/seq.ts": "135f37a1b6dcb3688bc0dad0c9dc3a04370b1fc94267960586ea23877ffd3088", + "https://deno.land/std@0.170.0/encoding/_yaml/type/set.ts": "2937ac0e1ce8c121a4009e74568e341e2a380fdb5f41f16050ce2ca7537b2bd8", + "https://deno.land/std@0.170.0/encoding/_yaml/type/str.ts": "6420d3a0099d9fbc35861241b7dad65b800ff3909efe71ab71c895326187ab8d", + "https://deno.land/std@0.170.0/encoding/_yaml/type/timestamp.ts": "3db0667dd9bdc3b3f0e8596fff023e87bc9fca230a545bb67d0bf3b732c1c656", + "https://deno.land/std@0.170.0/encoding/_yaml/type/undefined.ts": "5b595082d064cf50a3345f5fdda8c02beb0768e9d97d4bd4c53ac81a9f94e185", + "https://deno.land/std@0.170.0/encoding/_yaml/utils.ts": "c7e6bf055b08fffe700c7cbdfa2939cab7b9676ff75b6dc98d72d41b3b173d37", + "https://deno.land/std@0.170.0/encoding/base64.ts": "8605e018e49211efc767686f6f687827d7f5fd5217163e981d8d693105640d7a", + "https://deno.land/std@0.170.0/encoding/yaml.ts": "42baa442cb37a7e1f5d1aa5256ba988d139fe7bb2940151d8ed689be0ea67ce9", + "https://deno.land/std@0.170.0/fmt/colors.ts": "03ad95e543d2808bc43c17a3dd29d25b43d0f16287fe562a0be89bf632454a12", + "https://deno.land/std@0.170.0/io/buf_reader.ts": "6c0eb067040a9931be2d24de50f56e67b10e3ff69d5344575df06caddf551417", + "https://deno.land/std@0.170.0/io/buf_writer.ts": "b1ee5325cec3386596c67b1c7510bfc7e42b2f505060fe2e9d6536cdefdbb30c", + "https://deno.land/std@0.170.0/io/buffer.ts": "04e4d9a7bffffeddd75df7da795001871857d83f8e7772e6a3eee9d174f33d38", + "https://deno.land/std@0.170.0/io/read_delim.ts": "6bff17d31730eeab402633ee53701ac16e7b575a343c432acf7bd61bd649fd05", + "https://deno.land/std@0.170.0/io/read_lines.ts": "51e2841394effe1473f588de2a87d62b1c2deb63ce869115506324e228f9e67b", + "https://deno.land/std@0.170.0/io/read_string_delim.ts": "70b20eebd853269252d4a833834a2677b711f216842709d11005ba291d822a0a", + "https://deno.land/std@0.170.0/path/_constants.ts": "df1db3ffa6dd6d1252cc9617e5d72165cd2483df90e93833e13580687b6083c3", + "https://deno.land/std@0.170.0/path/_interface.ts": "ee3b431a336b80cf445441109d089b70d87d5e248f4f90ff906820889ecf8d09", + "https://deno.land/std@0.170.0/path/_util.ts": "d16be2a16e1204b65f9d0dfc54a9bc472cafe5f4a190b3c8471ec2016ccd1677", + "https://deno.land/std@0.170.0/path/common.ts": "bee563630abd2d97f99d83c96c2fa0cca7cee103e8cb4e7699ec4d5db7bd2633", + "https://deno.land/std@0.170.0/path/glob.ts": "81cc6c72be002cd546c7a22d1f263f82f63f37fe0035d9726aa96fc8f6e4afa1", + "https://deno.land/std@0.170.0/path/mod.ts": "cf7cec7ac11b7048bb66af8ae03513e66595c279c65cfa12bfc07d9599608b78", + "https://deno.land/std@0.170.0/path/posix.ts": "b859684bc4d80edfd4cad0a82371b50c716330bed51143d6dcdbe59e6278b30c", + "https://deno.land/std@0.170.0/path/separator.ts": "fe1816cb765a8068afb3e8f13ad272351c85cbc739af56dacfc7d93d710fe0f9", + "https://deno.land/std@0.170.0/path/win32.ts": "7cebd2bda6657371adc00061a1d23fdd87bcdf64b4843bb148b0b24c11b40f69", + "https://deno.land/std@0.170.0/testing/_diff.ts": "a23e7fc2b4d8daa3e158fa06856bedf5334ce2a2831e8bf9e509717f455adb2c", + "https://deno.land/std@0.170.0/testing/_format.ts": "cd11136e1797791045e639e9f0f4640d5b4166148796cad37e6ef75f7d7f3832", + "https://deno.land/std@0.170.0/testing/asserts.ts": "51353e79437361d4b02d8e32f3fc83b22231bc8f8d4c841d86fd32b0b0afe940", + "https://deno.land/std@0.170.0/testing/mock.ts": "e19bf1f42b4b0aa7bc85d1f3aa01ed6d99368347c8df2d38e33d177a3976718b", + "https://deno.land/std@0.170.0/uuid/_common.ts": "b608b98503c701d96ddf6983a40fa424952e1ea6d4b13bf13ebe29530742cee4", + "https://deno.land/std@0.170.0/uuid/mod.ts": "e57ba10200d75f2b17570f13eba19faa6734b1be2da5091e2c01039df41274a5", + "https://deno.land/std@0.170.0/uuid/v1.ts": "7123410ef9ce980a4f2e54a586ccde5ed7063f6f119a70d86eebd92f8e100295", + "https://deno.land/std@0.170.0/uuid/v4.ts": "60c829ec64291b920f1ff5f391fce8d05a42f74f58d5949e12bc0b3af88c7f5d", + "https://deno.land/std@0.170.0/uuid/v5.ts": "fa79d1495ec5bbbf6c3f3f6073d9ab3eecb0683371d936299ec9c3d1df2caac7", + "https://deno.land/x/cliffy@v0.25.7/_utils/distance.ts": "02af166952c7c358ac83beae397aa2fbca4ad630aecfcd38d92edb1ea429f004", + "https://deno.land/x/cliffy@v0.25.7/ansi/ansi_escapes.ts": "885f61f343223f27b8ec69cc138a54bea30542924eacd0f290cd84edcf691387", + "https://deno.land/x/cliffy@v0.25.7/ansi/chain.ts": "31fb9fcbf72fed9f3eb9b9487270d2042ccd46a612d07dd5271b1a80ae2140a0", + "https://deno.land/x/cliffy@v0.25.7/ansi/cursor_position.ts": "d537491e31d9c254b208277448eff92ff7f55978c4928dea363df92c0df0813f", + "https://deno.land/x/cliffy@v0.25.7/ansi/deps.ts": "0f35cb7e91868ce81561f6a77426ea8bc55dc15e13f84c7352f211023af79053", + "https://deno.land/x/cliffy@v0.25.7/ansi/tty.ts": "8fb064c17ead6cdf00c2d3bc87a9fd17b1167f2daa575c42b516f38bdb604673", + "https://deno.land/x/cliffy@v0.25.7/command/_errors.ts": "a9bd23dc816b32ec96c9b8f3057218241778d8c40333b43341138191450965e5", + "https://deno.land/x/cliffy@v0.25.7/command/_utils.ts": "9ab3d69fabab6c335b881b8a5229cbd5db0c68f630a1c307aff988b6396d9baf", + "https://deno.land/x/cliffy@v0.25.7/command/command.ts": "a2b83c612acd65c69116f70dec872f6da383699b83874b70fcf38cddf790443f", + "https://deno.land/x/cliffy@v0.25.7/command/completions/_bash_completions_generator.ts": "43b4abb543d4dc60233620d51e69d82d3b7c44e274e723681e0dce2a124f69f9", + "https://deno.land/x/cliffy@v0.25.7/command/completions/_fish_completions_generator.ts": "d0289985f5cf0bd288c05273bfa286b24c27feb40822eb7fd9d7fee64e6580e8", + "https://deno.land/x/cliffy@v0.25.7/command/completions/_zsh_completions_generator.ts": "14461eb274954fea4953ee75938821f721da7da607dc49bcc7db1e3f33a207bd", + "https://deno.land/x/cliffy@v0.25.7/command/completions/bash.ts": "053aa2006ec327ccecacb00ba28e5eb836300e5c1bec1b3cfaee9ddcf8189756", + "https://deno.land/x/cliffy@v0.25.7/command/completions/complete.ts": "58df61caa5e6220ff2768636a69337923ad9d4b8c1932aeb27165081c4d07d8b", + "https://deno.land/x/cliffy@v0.25.7/command/completions/fish.ts": "9938beaa6458c6cf9e2eeda46a09e8cd362d4f8c6c9efe87d3cd8ca7477402a5", + "https://deno.land/x/cliffy@v0.25.7/command/completions/mod.ts": "aeef7ec8e319bb157c39a4bab8030c9fe8fa327b4c1e94c9c1025077b45b40c0", + "https://deno.land/x/cliffy@v0.25.7/command/completions/zsh.ts": "8b04ab244a0b582f7927d405e17b38602428eeb347a9968a657e7ea9f40e721a", + "https://deno.land/x/cliffy@v0.25.7/command/deprecated.ts": "bbe6670f1d645b773d04b725b8b8e7814c862c9f1afba460c4d599ffe9d4983c", + "https://deno.land/x/cliffy@v0.25.7/command/deps.ts": "275b964ce173770bae65f6b8ebe9d2fd557dc10292cdd1ed3db1735f0d77fa1d", + "https://deno.land/x/cliffy@v0.25.7/command/help/_help_generator.ts": "f7c349cb2ddb737e70dc1f89bcb1943ca9017a53506be0d4138e0aadb9970a49", + "https://deno.land/x/cliffy@v0.25.7/command/help/mod.ts": "09d74d3eb42d21285407cda688074c29595d9c927b69aedf9d05ff3f215820d3", + "https://deno.land/x/cliffy@v0.25.7/command/mod.ts": "d0a32df6b14028e43bb2d41fa87d24bc00f9662a44e5a177b3db02f93e473209", + "https://deno.land/x/cliffy@v0.25.7/command/type.ts": "24e88e3085e1574662b856ccce70d589959648817135d4469fab67b9cce1b364", + "https://deno.land/x/cliffy@v0.25.7/command/types.ts": "ae02eec0ed7a769f7dba2dd5d3a931a61724b3021271b1b565cf189d9adfd4a0", + "https://deno.land/x/cliffy@v0.25.7/command/types/action_list.ts": "33c98d449617c7a563a535c9ceb3741bde9f6363353fd492f90a74570c611c27", + "https://deno.land/x/cliffy@v0.25.7/command/types/boolean.ts": "3879ec16092b4b5b1a0acb8675f8c9250c0b8a972e1e4c7adfba8335bd2263ed", + "https://deno.land/x/cliffy@v0.25.7/command/types/child_command.ts": "f1fca390c7fbfa7a713ca15ef55c2c7656bcbb394d50e8ef54085bdf6dc22559", + "https://deno.land/x/cliffy@v0.25.7/command/types/command.ts": "325d0382e383b725fd8d0ef34ebaeae082c5b76a1f6f2e843fee5dbb1a4fe3ac", + "https://deno.land/x/cliffy@v0.25.7/command/types/enum.ts": "2178345972adf7129a47e5f02856ca3e6852a91442a1c78307dffb8a6a3c6c9f", + "https://deno.land/x/cliffy@v0.25.7/command/types/file.ts": "8618f16ac9015c8589cbd946b3de1988cc4899b90ea251f3325c93c46745140e", + "https://deno.land/x/cliffy@v0.25.7/command/types/integer.ts": "29864725fd48738579d18123d7ee78fed37515e6dc62146c7544c98a82f1778d", + "https://deno.land/x/cliffy@v0.25.7/command/types/number.ts": "aeba96e6f470309317a16b308c82e0e4138a830ec79c9877e4622c682012bc1f", + "https://deno.land/x/cliffy@v0.25.7/command/types/string.ts": "e4dadb08a11795474871c7967beab954593813bb53d9f69ea5f9b734e43dc0e0", + "https://deno.land/x/cliffy@v0.25.7/command/upgrade/mod.ts": "17e2df3b620905583256684415e6c4a31e8de5c59066eb6d6c9c133919292dc4", + "https://deno.land/x/cliffy@v0.25.7/command/upgrade/provider.ts": "d6fb846043232cbd23c57d257100c7fc92274984d75a5fead0f3e4266dc76ab8", + "https://deno.land/x/cliffy@v0.25.7/command/upgrade/provider/deno_land.ts": "24f8d82e38c51e09be989f30f8ad21f9dd41ac1bb1973b443a13883e8ba06d6d", + "https://deno.land/x/cliffy@v0.25.7/command/upgrade/provider/github.ts": "99e1b133dd446c6aa79f69e69c46eb8bc1c968dd331c2a7d4064514a317c7b59", + "https://deno.land/x/cliffy@v0.25.7/command/upgrade/provider/nest_land.ts": "0e07936cea04fa41ac9297f32d87f39152ea873970c54cb5b4934b12fee1885e", + "https://deno.land/x/cliffy@v0.25.7/command/upgrade/upgrade_command.ts": "3640a287d914190241ea1e636774b1b4b0e1828fa75119971dd5304784061e05", + "https://deno.land/x/cliffy@v0.25.7/flags/_errors.ts": "f1fbb6bfa009e7950508c9d491cfb4a5551027d9f453389606adb3f2327d048f", + "https://deno.land/x/cliffy@v0.25.7/flags/_utils.ts": "340d3ecab43cde9489187e1f176504d2c58485df6652d1cdd907c0e9c3ce4cc2", + "https://deno.land/x/cliffy@v0.25.7/flags/_validate_flags.ts": "16eb5837986c6f6f7620817820161a78d66ce92d690e3697068726bbef067452", + "https://deno.land/x/cliffy@v0.25.7/flags/deprecated.ts": "a72a35de3cc7314e5ebea605ca23d08385b218ef171c32a3f135fb4318b08126", + "https://deno.land/x/cliffy@v0.25.7/flags/flags.ts": "68a9dfcacc4983a84c07ba19b66e5e9fccd04389fad215210c60fb414cc62576", + "https://deno.land/x/cliffy@v0.25.7/flags/types.ts": "7452ea5296758fb7af89930349ce40d8eb9a43b24b3f5759283e1cb5113075fd", + "https://deno.land/x/cliffy@v0.25.7/flags/types/boolean.ts": "4c026dd66ec9c5436860dc6d0241427bdb8d8e07337ad71b33c08193428a2236", + "https://deno.land/x/cliffy@v0.25.7/flags/types/integer.ts": "b60d4d590f309ddddf066782d43e4dc3799f0e7d08e5ede7dc62a5ee94b9a6d9", + "https://deno.land/x/cliffy@v0.25.7/flags/types/number.ts": "610936e2d29de7c8c304b65489a75ebae17b005c6122c24e791fbed12444d51e", + "https://deno.land/x/cliffy@v0.25.7/flags/types/string.ts": "e89b6a5ce322f65a894edecdc48b44956ec246a1d881f03e97bbda90dd8638c5", + "https://deno.land/x/cliffy@v0.25.7/keycode/key_code.ts": "c4ab0ffd102c2534962b765ded6d8d254631821bf568143d9352c1cdcf7a24be", + "https://deno.land/x/cliffy@v0.25.7/keycode/key_codes.ts": "917f0a2da0dbace08cf29bcfdaaa2257da9fe7e705fff8867d86ed69dfb08cfe", + "https://deno.land/x/cliffy@v0.25.7/keycode/mod.ts": "292d2f295316c6e0da6955042a7b31ab2968ff09f2300541d00f05ed6c2aa2d4", + "https://deno.land/x/cliffy@v0.25.7/prompt/_generic_input.ts": "737cff2de02c8ce35250f5dd79c67b5fc176423191a2abd1f471a90dd725659e", + "https://deno.land/x/cliffy@v0.25.7/prompt/_generic_list.ts": "79b301bf09eb19f0d070d897f613f78d4e9f93100d7e9a26349ef0bfaa7408d2", + "https://deno.land/x/cliffy@v0.25.7/prompt/_generic_prompt.ts": "8630ce89a66d83e695922df41721cada52900b515385d86def597dea35971bb2", + "https://deno.land/x/cliffy@v0.25.7/prompt/_generic_suggestions.ts": "2a8b619f91e8f9a270811eff557f10f1343a444a527b5fc22c94de832939920c", + "https://deno.land/x/cliffy@v0.25.7/prompt/_utils.ts": "676cca30762656ed1a9bcb21a7254244278a23ffc591750e98a501644b6d2df3", + "https://deno.land/x/cliffy@v0.25.7/prompt/checkbox.ts": "e5a5a9adbb86835dffa2afbd23c6f7a8fe25a9d166485388ef25aba5dc3fbf9e", + "https://deno.land/x/cliffy@v0.25.7/prompt/confirm.ts": "94c8e55de3bbcd53732804420935c432eab29945497d1c47c357d236a89cb5f6", + "https://deno.land/x/cliffy@v0.25.7/prompt/deps.ts": "4c38ab18e55a792c9a136c1c29b2b6e21ea4820c45de7ef4cf517ce94012c57d", + "https://deno.land/x/cliffy@v0.25.7/prompt/figures.ts": "26af0fbfe21497220e4b887bb550fab997498cde14703b98e78faf370fbb4b94", + "https://deno.land/x/cliffy@v0.25.7/prompt/input.ts": "ee45532e0a30c2463e436e08ae291d79d1c2c40872e17364c96d2b97c279bf4d", + "https://deno.land/x/cliffy@v0.25.7/prompt/list.ts": "6780427ff2a932a48c9b882d173c64802081d6cdce9ff618d66ba6504b6abc50", + "https://deno.land/x/cliffy@v0.25.7/prompt/mod.ts": "195aed14d10d279914eaa28c696dec404d576ca424c097a5bc2b4a7a13b66c89", + "https://deno.land/x/cliffy@v0.25.7/prompt/number.ts": "015305a76b50138234dde4fd50eb886c6c7c0baa1b314caf811484644acdc2cf", + "https://deno.land/x/cliffy@v0.25.7/prompt/prompt.ts": "0e7f6a1d43475ee33fb25f7d50749b2f07fc0bcddd9579f3f9af12d05b4a4412", + "https://deno.land/x/cliffy@v0.25.7/prompt/secret.ts": "58745f5231fb2c44294c4acf2511f8c5bfddfa1e12f259580ff90dedea2703d6", + "https://deno.land/x/cliffy@v0.25.7/prompt/select.ts": "1e982eae85718e4e15a3ee10a5ae2233e532d7977d55888f3a309e8e3982b784", + "https://deno.land/x/cliffy@v0.25.7/prompt/toggle.ts": "842c3754a40732f2e80bcd4670098713e402e64bd930e6cab2b787f7ad4d931a", + "https://deno.land/x/cliffy@v0.25.7/table/border.ts": "2514abae4e4f51eda60a5f8c927ba24efd464a590027e900926b38f68e01253c", + "https://deno.land/x/cliffy@v0.25.7/table/cell.ts": "1d787d8006ac8302020d18ec39f8d7f1113612c20801b973e3839de9c3f8b7b3", + "https://deno.land/x/cliffy@v0.25.7/table/deps.ts": "5b05fa56c1a5e2af34f2103fd199e5f87f0507549963019563eae519271819d2", + "https://deno.land/x/cliffy@v0.25.7/table/layout.ts": "46bf10ae5430cf4fbb92f23d588230e9c6336edbdb154e5c9581290562b169f4", + "https://deno.land/x/cliffy@v0.25.7/table/mod.ts": "e74f69f38810ee6139a71132783765feb94436a6619c07474ada45b465189834", + "https://deno.land/x/cliffy@v0.25.7/table/row.ts": "5f519ba7488d2ef76cbbf50527f10f7957bfd668ce5b9169abbc44ec88302645", + "https://deno.land/x/cliffy@v0.25.7/table/table.ts": "ec204c9d08bb3ff1939c5ac7412a4c9ed7d00925d4fc92aff9bfe07bd269258d", + "https://deno.land/x/cliffy@v0.25.7/table/utils.ts": "187bb7dcbcfb16199a5d906113f584740901dfca1007400cba0df7dcd341bc29" + } +} diff --git a/cli/test/parse-yaml.ts b/cli/test/parse-yaml.ts index e47259a..4238770 100644 --- a/cli/test/parse-yaml.ts +++ b/cli/test/parse-yaml.ts @@ -1,8 +1,8 @@ // a KISS deno script to parse yaml and output it as json // this allows us to test a) yaml is valid and b) access properties using jq -import * as yaml from 'https://deno.land/std@0.136.0/encoding/yaml.ts'; -import * as util from 'https://deno.land/std@0.136.0/io/util.ts'; +import * as yaml from 'https://deno.land/std@0.170.0/encoding/yaml.ts'; +import * as util from 'https://deno.land/std@0.170.0/io/util.ts'; const stdin = new TextDecoder().decode( await util.readAll(Deno.stdin), diff --git a/cli/unipipe/commands/browse.ts b/cli/unipipe/commands/browse.ts index ac387b2..65e08c5 100644 --- a/cli/unipipe/commands/browse.ts +++ b/cli/unipipe/commands/browse.ts @@ -10,14 +10,14 @@ import { import { OsbStatusValue } from "../osb.ts"; import { Repository } from "../repository.ts"; import { stringify } from "../yaml.ts"; -import { show } from "./show.ts"; +import { OutputFormat, show } from "./show.ts"; import { STATUSES, update } from "./update.ts"; export function registerBrowseCmd(program: Command) { program .command("browse [repo]") .description("Interactively browse and manipulate a UniPipe OSB git repo.") - .action(async (_opts: Record, repo: string | undefined) => { + .action(async (_, repo: string | undefined) => { const repository = new Repository(repo ? repo : "."); await browseInstances(repository); }); @@ -177,7 +177,7 @@ async function browseInstances(repo: Repository) { async function showInstance(repository: Repository, instanceId: string) { await show(repository, { instanceId: instanceId, - outputFormat: "yaml", + outputFormat: OutputFormat.YAML, pretty: true, }); } diff --git a/cli/unipipe/commands/generate.ts b/cli/unipipe/commands/generate.ts index 92f48b3..08b4d14 100644 --- a/cli/unipipe/commands/generate.ts +++ b/cli/unipipe/commands/generate.ts @@ -68,7 +68,7 @@ export function registerGenerateCmd(program: Command) { "Pick a destination directory for the generated transform-handler file.", ) .option( - "--handler ", + "--handler ", "Pick a handler type for the generated transform-handler file.", ) .option( @@ -112,7 +112,7 @@ export function registerGenerateCmd(program: Command) { "Pick a destination directory for the generated unipipe-service-broker-deployment file.", ) .option( - "--deployment ", + "--deployment ", "Pick a deployment type for the generated unipipe-service-broker-deployment file.", ) .action(async (options: CatalogOpts) => @@ -131,7 +131,7 @@ function generateUuid() { } async function generateService() { - const serviceDefinitionId = uuid.generate(); + const serviceDefinitionId = uuid.generate() as string; // repository root const catalog: Dir = { diff --git a/cli/unipipe/commands/git.ts b/cli/unipipe/commands/git.ts index a927ba0..c1a2767 100644 --- a/cli/unipipe/commands/git.ts +++ b/cli/unipipe/commands/git.ts @@ -11,15 +11,15 @@ export function registerGitCmd(program: Command) { program .command("git [repo]") .option( - "-n, --name [name:string]", + "-n, --name ", "Git author username. Default is `Unipipe CLI`.", ) .option( - "-e, --email [email:string]", + "-e, --email ", "Git author email. Default is `unipipe-cli@meshcloud.io`.", ) .option( - "-m, --message [message:string]", + "-m, --message ", "Commit message. Default is `Commit changes`.", ) .description( diff --git a/cli/unipipe/commands/list.ts b/cli/unipipe/commands/list.ts index 8bf8bbf..50ac311 100644 --- a/cli/unipipe/commands/list.ts +++ b/cli/unipipe/commands/list.ts @@ -41,22 +41,22 @@ export function registerListCmd(program: Command) { .type("profile", profilesType) .type("status", statusesType) .option( - "-p, --profile [profile:profile]", + "-p, --profile ", "include columns of context information according to the specified OSB API profile. Supported values are 'meshmarketplace' and 'cloudfoundry'. Ignored when '-o json' is set.", ) .option( - "-o, --output-format [format:format]", + "-o, --output-format ", "Output format. Supported formats are json and text.", { - default: "text", + default: "text" as Format, }, ) .option( - "--status [status:status]", + "--status ", "Filters instances by status. Allowed values are 'in progress', 'succeeded', 'failed' and 'EMPTY' (no status file present for this instance).", ) .option( - "--deleted [deleted:boolean]", + "--deleted ", "Filters instances by deleted. Allowed values are 'true' and 'false'", ) .description( diff --git a/cli/unipipe/commands/show.ts b/cli/unipipe/commands/show.ts index 5cf93c7..9782972 100644 --- a/cli/unipipe/commands/show.ts +++ b/cli/unipipe/commands/show.ts @@ -2,31 +2,34 @@ import { Command, EnumType } from "../deps.ts"; import { Repository } from "../repository.ts"; import { stringify } from "../yaml.ts"; -const ALL_FORMATS = ["json", "yaml"] as const; -type FormatsTuple = typeof ALL_FORMATS; -type Format = FormatsTuple[number]; +export enum OutputFormat { + JSON = "json", + YAML = "yaml", +} -const formatsType = new EnumType(ALL_FORMATS); +export const OutputFormatType = new EnumType(Object.values(OutputFormat)); export interface ShowOpts { instanceId: string; - outputFormat: Format; - pretty: boolean; + outputFormat?: OutputFormat; + pretty?: boolean; } export function registerShowCmd(program: Command) { // show program .command("show [repo]") - .type("format", formatsType) + .type("format", OutputFormatType) .description( "Shows the state stored service instance stored in a UniPipe OSB git repo.", ) - .option("-i, --instance-id ", "Service instance id.") + .option("-i, --instance-id ", "Service instance id.", { + required: true, + }) .option( - "-o, --output-format ", + "-o, --output-format ", "Output format. Supported formats are yaml and json.", - { default: "yaml" }, + { default: OutputFormat.YAML }, ) .option("--pretty", "Pretty print") .action(async (options: ShowOpts, repo: string | undefined) => { diff --git a/cli/unipipe/commands/transform.ts b/cli/unipipe/commands/transform.ts index 57b6fa2..b94eab3 100644 --- a/cli/unipipe/commands/transform.ts +++ b/cli/unipipe/commands/transform.ts @@ -5,7 +5,7 @@ import { ServiceInstance } from "../osb.ts"; import { Repository } from "../repository.ts"; interface TransformOpts { - xportRepo: string; + xportRepo?: string; registryOfHandlers: string; } @@ -20,9 +20,10 @@ export function registerTransformCmd(program: Command) { .option( "-r, --registry-of-handlers ", "A registry of handlers for processing service instance transformation. These can be defined in javascript, see `unipipe generate transform-handler` for an example.", + { required: true }, ) .option( - "-x, --xport-repo [path:string]", + "-x, --xport-repo ", "Path to the target git repository. If not specified the transform runs in place on the OSB git repo.", ) .action(async (options: TransformOpts, repo: string | undefined) => { diff --git a/cli/unipipe/commands/update.ts b/cli/unipipe/commands/update.ts index aaa09d4..eeabf32 100644 --- a/cli/unipipe/commands/update.ts +++ b/cli/unipipe/commands/update.ts @@ -24,7 +24,9 @@ export function registerUpdateCmd(program: Command) { .description( "Update status of a service instance or binding stored in a UniPipe OSB git repo.", ) - .option("-i --instance-id ", "Service instance id.", {}) + .option("-i --instance-id ", "Service instance id.", { + required: true, + }) .option("-b --binding-id ", "Service binding id.", { depends: ["instance-id"], }) @@ -39,9 +41,11 @@ export function registerUpdateCmd(program: Command) { .option( "--status ", "The status. Allowed values are 'in progress', 'succeeded' and 'failed'.", + { required: true }, ) // todo use choices instead - .option("--description [description]", "Status description text.", { + .option("--description ", "Status description text.", { default: "", + required: true, }) .action(async (options: UpdateOpts, repo: string | undefined) => { const repository = new Repository(repo ? repo : "."); diff --git a/cli/unipipe/deps.ts b/cli/unipipe/deps.ts index 8c4fc1b..2d51717 100644 --- a/cli/unipipe/deps.ts +++ b/cli/unipipe/deps.ts @@ -3,15 +3,15 @@ // this is a deno best practice https://deno.land/manual@v1.7.4/examples/manage_dependencies // for discussion of the performance implications (and why this doesn't matter much for this _app_) see https://github.com/denoland/deno/issues/6194 -export * as path from "https://deno.land/std@0.136.0/path/mod.ts"; -export * as yaml from "https://deno.land/std@0.136.0/encoding/yaml.ts"; -export { v4 as uuid } from "https://deno.land/std@0.136.0/uuid/mod.ts"; -export * as colors from "https://deno.land/std@0.136.0/fmt/colors.ts"; +export * as path from "https://deno.land/std@0.170.0/path/mod.ts"; +export * as yaml from "https://deno.land/std@0.170.0/encoding/yaml.ts"; +export { v1 as uuid } from "https://deno.land/std@0.170.0/uuid/mod.ts"; +export * as colors from "https://deno.land/std@0.170.0/fmt/colors.ts"; // note: it's a bit ugly that we have to foray into the private parts of the stdlib, but otherwise we can't configure // the options we need -export { Type as YamlType } from "https://deno.land/std@0.136.0/encoding/_yaml/type.ts"; -export { Schema as YamlSchema } from "https://deno.land/std@0.136.0/encoding/_yaml/schema.ts"; +export { Type as YamlType } from "https://deno.land/std@0.170.0/encoding/_yaml/type.ts"; +export { Schema as YamlSchema } from "https://deno.land/std@0.170.0/encoding/_yaml/schema.ts"; /** * 3rd party deps @@ -21,18 +21,17 @@ export { CompletionsCommand, EnumType, Type, -} from "https://deno.land/x/cliffy@v0.22.2/command/mod.ts"; -export type { ITypeInfo } from "https://deno.land/x/cliffy@v0.22.2/command/mod.ts"; +} from "https://deno.land/x/cliffy@v0.25.7/command/mod.ts"; export { GithubProvider, UpgradeCommand, -} from "https://deno.land/x/cliffy@v0.22.2/command/upgrade/mod.ts"; -export type { GithubProviderOptions } from "https://deno.land/x/cliffy@v0.22.2/command/upgrade/mod.ts"; -export { Table } from "https://deno.land/x/cliffy@v0.22.2/table/mod.ts"; +} from "https://deno.land/x/cliffy@v0.25.7/command/upgrade/mod.ts"; +export type { GithubProviderOptions } from "https://deno.land/x/cliffy@v0.25.7/command/upgrade/mod.ts"; +export { Table } from "https://deno.land/x/cliffy@v0.25.7/table/mod.ts"; export { Input, prompt as prompt, Select, -} from "https://deno.land/x/cliffy@v0.22.2/prompt/mod.ts"; -export type { SelectValueOptions } from "https://deno.land/x/cliffy@v0.22.2/prompt/mod.ts"; -export { List } from "https://deno.land/x/cliffy@v0.22.2/prompt/list.ts"; +} from "https://deno.land/x/cliffy@v0.25.7/prompt/mod.ts"; +export type { SelectValueOptions } from "https://deno.land/x/cliffy@v0.25.7/prompt/mod.ts"; +export { List } from "https://deno.land/x/cliffy@v0.25.7/prompt/list.ts"; diff --git a/cli/unipipe/dev_deps.ts b/cli/unipipe/dev_deps.ts index efb3bc2..f958415 100644 --- a/cli/unipipe/dev_deps.ts +++ b/cli/unipipe/dev_deps.ts @@ -1,8 +1,8 @@ -export { assertEquals } from "https://deno.land/std@0.136.0/testing/asserts.ts"; +export { assertEquals } from "https://deno.land/std@0.170.0/testing/asserts.ts"; export { assertSpyCall, assertSpyCalls, returnsNext, stub, -} from "https://deno.land/std@0.136.0/testing/mock.ts"; -export type { Stub } from "https://deno.land/std@0.136.0/testing/mock.ts"; +} from "https://deno.land/std@0.170.0/testing/mock.ts"; +export type { Stub } from "https://deno.land/std@0.170.0/testing/mock.ts"; From 5977b0237fd11541d24c9ee573d0483df985a2f3 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Thu, 2 Nov 2023 11:22:05 +0100 Subject: [PATCH 2/2] chore: update deno version used in builds --- .github/workflows/build-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml index 6e0a0c6..cc5fa0a 100644 --- a/.github/workflows/build-workflow.yml +++ b/.github/workflows/build-workflow.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: "~1.21" + deno-version: "~1.37" - uses: actions/cache@v3 with: path: ~/.cache/deno # see https://deno.land/manual/linking_to_external_code