@shopify/cli 3.69.4 → 3.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/assets/cli-ruby/LICENSE → LICENSE} +0 -2
- package/dist/chunk-2PUMVRDO.js +131 -0
- package/dist/{chunk-KM4TMAQ2.js → chunk-335KXO4I.js} +12 -8
- package/dist/{chunk-HV364V3E.js → chunk-43YGIE7Y.js} +2 -2
- package/dist/chunk-47OJGAFT.js +28 -0
- package/dist/chunk-5OP2SA7G.js +3634 -0
- package/dist/{chunk-YNL4XNMX.js → chunk-5QQTRGJ7.js} +4 -4
- package/dist/{chunk-FWX3KCDM.js → chunk-7GNQ7YY4.js} +7 -7
- package/dist/{chunk-2JRUKBKX.js → chunk-AT4IG4GJ.js} +32 -216
- package/dist/{chunk-BMTELIUS.js → chunk-BMNDAI5O.js} +4 -4
- package/dist/{chunk-6XKWVDB6.js → chunk-CBBS4CV7.js} +3 -3
- package/dist/{chunk-27ILOE3X.js → chunk-CBD6UXLA.js} +8 -8
- package/dist/chunk-DVTWERMH.js +105 -0
- package/dist/{chunk-FX2HB3CJ.js → chunk-E2SYFYJU.js} +4 -4
- package/dist/{chunk-JHVVETTP.js → chunk-FDJVVEGH.js} +17 -7
- package/dist/{chunk-7NPDPZ22.js → chunk-GDYKHT64.js} +2610 -6199
- package/dist/{chunk-EJGKAHVK.js → chunk-I3IIDOBX.js} +3 -3
- package/dist/{chunk-ISDSND4L.js → chunk-JLK5OMFF.js} +2 -2
- package/dist/{chunk-N3U3EHOE.js → chunk-KYBCPKPL.js} +3 -3
- package/dist/{chunk-S2IXL3EU.js → chunk-LN444KRM.js} +2 -2
- package/dist/chunk-MH5JSAVK.js +28 -0
- package/dist/{chunk-TLZ4ZBH3.js → chunk-MMQOVZDR.js} +6 -4
- package/dist/{chunk-UQUVQV3X.js → chunk-MQXHFQM3.js} +4 -4
- package/dist/{chunk-F54UWMGQ.js → chunk-MRDDDATQ.js} +3 -3
- package/dist/{chunk-6IATSQ3X.js → chunk-N2DEYZD6.js} +3 -3
- package/dist/{chunk-334DJQUN.js → chunk-N4X7XQWN.js} +2 -2
- package/dist/{chunk-YPWRQ5AU.js → chunk-ND6AGPC6.js} +3 -3
- package/dist/{chunk-A3JXD7N7.js → chunk-NEOIQ6PN.js} +3 -3
- package/dist/{chunk-OWCYMR5Y.js → chunk-NH4U4X67.js} +3 -3
- package/dist/{chunk-VQ3R5DHS.js → chunk-NYFXBTWK.js} +3 -3
- package/dist/{chunk-GYP4MV72.js → chunk-P6ABWRKD.js} +7 -7
- package/dist/{chunk-2NCWYVM4.js → chunk-PJKCWDDX.js} +117 -117
- package/dist/{chunk-VHEJRU4K.js → chunk-PKE54TAY.js} +5 -5
- package/dist/{chunk-FVUAIT37.js → chunk-RUK73IAH.js} +2 -2
- package/dist/{chunk-RYTZQSHH.js → chunk-SYRHCENA.js} +2 -2
- package/dist/{chunk-K3GASX6Y.js → chunk-TCTXUAZT.js} +3 -3
- package/dist/chunk-UOZCMFCN.js +160 -0
- package/dist/{chunk-7B5FNNVB.js → chunk-VFQMUAHB.js} +4 -4
- package/dist/{chunk-ORDEDRCZ.js → chunk-VHAXHYTL.js} +3 -3
- package/dist/{chunk-CPEFXM7T.js → chunk-VT3VJHZ7.js} +4 -4
- package/dist/{chunk-TV5WOUSX.js → chunk-WI6MEN7U.js} +2 -2
- package/dist/{chunk-WHP4CEBJ.js → chunk-WN3FKMKB.js} +14 -14
- package/dist/{chunk-Y3MSANL5.js → chunk-X6F3DHKX.js} +2 -2
- package/dist/{chunk-P7JUHQKL.js → chunk-XEDHKQZA.js} +4 -3
- package/dist/{chunk-BRO6DC7D.js → chunk-XSMWYZDC.js} +17 -23
- package/dist/cli/commands/auth/logout.js +20 -18
- package/dist/cli/commands/auth/logout.test.js +25 -23
- package/dist/cli/commands/cache/clear.d.ts +6 -0
- package/dist/cli/commands/cache/clear.js +35 -0
- package/dist/cli/commands/debug/command-flags.js +19 -17
- package/dist/cli/commands/demo/catalog.js +20 -18
- package/dist/cli/commands/demo/generate-file.js +20 -18
- package/dist/cli/commands/demo/index.js +20 -18
- package/dist/cli/commands/demo/print-ai-prompt.js +20 -18
- package/dist/cli/commands/docs/generate.js +19 -17
- package/dist/cli/commands/docs/generate.test.js +19 -17
- package/dist/cli/commands/help.js +19 -17
- package/dist/cli/commands/kitchen-sink/async.js +20 -18
- package/dist/cli/commands/kitchen-sink/async.test.js +20 -18
- package/dist/cli/commands/kitchen-sink/index.js +22 -20
- package/dist/cli/commands/kitchen-sink/index.test.js +22 -20
- package/dist/cli/commands/kitchen-sink/prompts.js +20 -18
- package/dist/cli/commands/kitchen-sink/prompts.test.js +20 -18
- package/dist/cli/commands/kitchen-sink/static.js +20 -18
- package/dist/cli/commands/kitchen-sink/static.test.js +20 -18
- package/dist/cli/commands/notifications/generate.d.ts +6 -0
- package/dist/cli/commands/notifications/generate.js +36 -0
- package/dist/cli/commands/notifications/list.d.ts +6 -0
- package/dist/cli/commands/notifications/list.js +36 -0
- package/dist/cli/commands/search.js +20 -18
- package/dist/cli/commands/upgrade.js +20 -18
- package/dist/cli/commands/version.js +20 -18
- package/dist/cli/commands/version.test.js +20 -18
- package/dist/cli/services/commands/notifications.d.ts +2 -0
- package/dist/cli/services/commands/notifications.js +31 -0
- package/dist/cli/services/commands/search.js +9 -9
- package/dist/cli/services/commands/search.test.js +9 -9
- package/dist/cli/services/commands/version.js +10 -10
- package/dist/cli/services/commands/version.test.js +11 -11
- package/dist/cli/services/demo.js +9 -9
- package/dist/cli/services/demo.test.js +11 -11
- package/dist/cli/services/kitchen-sink/async.js +9 -9
- package/dist/cli/services/kitchen-sink/prompts.js +9 -9
- package/dist/cli/services/kitchen-sink/static.js +9 -9
- package/dist/cli/services/upgrade.js +10 -10
- package/dist/cli/services/upgrade.test.js +12 -12
- package/dist/{constants-T7JXE5K7.js → constants-QFFDI47A.js} +6 -4
- package/dist/{custom-oclif-loader-TBU3GENB.js → custom-oclif-loader-IZLFCRGJ.js} +11 -11
- package/dist/data/filters.json +39 -16
- package/dist/data/latest.json +1 -1
- package/dist/data/objects.json +164 -6
- package/dist/data/shopify_system_translations.json +32 -3
- package/dist/{del-7ZS2Z64N.js → del-FEQWOMIX.js} +2 -2
- package/dist/{error-handler-IL72ACEX.js → error-handler-DAI5HMQW.js} +17 -16
- package/dist/hooks/postrun.js +14 -13
- package/dist/hooks/prerun.js +14 -13
- package/dist/index.js +9901 -8692
- package/dist/{lib-JHUCJTHS.js → lib-JJXX7GH6.js} +5 -5
- package/dist/{local-OE2I46PA.js → local-QD6GDUUE.js} +9 -9
- package/dist/{morph-UIXWG2S7.js → morph-FN23MJ2S.js} +2 -2
- package/dist/{node-SDBKEHIV.js → node-4XKDIIJ7.js} +21 -19
- package/dist/{node-package-manager-LPDV6HZY.js → node-package-manager-IEZ6F5VN.js} +10 -10
- package/dist/{system-SGABHAU2.js → system-KSIGUX64.js} +9 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-WB42ZV4M.js → ui-BUB4OWO7.js} +9 -9
- package/dist/{workerd-YWTPL4SF.js → workerd-DIIGDIHZ.js} +21 -19
- package/oclif.manifest.json +60 -93
- package/package.json +6 -6
- package/dist/assets/cli-ruby/.devcontainer.json +0 -5
- package/dist/assets/cli-ruby/.rubocop.yml +0 -102
- package/dist/assets/cli-ruby/.rubocop_todo.yml +0 -24
- package/dist/assets/cli-ruby/CHANGELOG.md +0 -634
- package/dist/assets/cli-ruby/CONTRIBUTING.md +0 -3
- package/dist/assets/cli-ruby/Codespace.dockerfile +0 -35
- package/dist/assets/cli-ruby/Gemfile +0 -32
- package/dist/assets/cli-ruby/README.md +0 -30
- package/dist/assets/cli-ruby/Rakefile +0 -167
- package/dist/assets/cli-ruby/SECURITY.md +0 -59
- package/dist/assets/cli-ruby/Tests.dockerfile +0 -35
- package/dist/assets/cli-ruby/assets/logo.png +0 -0
- package/dist/assets/cli-ruby/bin/console +0 -11
- package/dist/assets/cli-ruby/bin/load_shopify.rb +0 -22
- package/dist/assets/cli-ruby/bin/shopify +0 -67
- package/dist/assets/cli-ruby/bin/shopify.bat +0 -3
- package/dist/assets/cli-ruby/bin/update-deps +0 -97
- package/dist/assets/cli-ruby/dev.yml +0 -29
- package/dist/assets/cli-ruby/docs/README.md +0 -13
- package/dist/assets/cli-ruby/docs/contributors/testing.md +0 -27
- package/dist/assets/cli-ruby/docs/users/installation.md +0 -3
- package/dist/assets/cli-ruby/docs/users/migrate-from-themekit.md +0 -18
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-arm-macos-v0.1.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-arm-macos-v0.2.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-arm-macos-v0.2.1.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-arm-macos-v0.3.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-linux-v0.1.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-linux-v0.2.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-linux-v0.2.1.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-linux-v0.3.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-macos-v0.1.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-macos-v0.2.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-macos-v0.2.1.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-macos-v0.3.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-windows-v0.1.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-windows-v0.2.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-windows-v0.2.1.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/hashes/javy-x86_64-windows-v0.3.0.gz.sha256 +0 -1
- package/dist/assets/cli-ruby/ext/javy/javy.rb +0 -204
- package/dist/assets/cli-ruby/ext/javy/version +0 -1
- package/dist/assets/cli-ruby/ext/shopify-extensions/extconf.rb +0 -21
- package/dist/assets/cli-ruby/ext/shopify-extensions/shopify_extensions.rb +0 -152
- package/dist/assets/cli-ruby/ext/shopify-extensions/version +0 -1
- package/dist/assets/cli-ruby/features/support/assertions.rb +0 -17
- package/dist/assets/cli-ruby/features/support/cli.rb +0 -7
- package/dist/assets/cli-ruby/features/support/process.rb +0 -27
- package/dist/assets/cli-ruby/features/support/requires.rb +0 -3
- package/dist/assets/cli-ruby/lib/docgen/class_template.md.erb +0 -81
- package/dist/assets/cli-ruby/lib/docgen/index_template.md.erb +0 -5
- package/dist/assets/cli-ruby/lib/docgen/markdown.rb +0 -101
- package/dist/assets/cli-ruby/lib/graphql/admin_introspection.graphql +0 -87
- package/dist/assets/cli-ruby/lib/graphql/all_organizations.graphql +0 -19
- package/dist/assets/cli-ruby/lib/graphql/all_orgs_with_apps.graphql +0 -30
- package/dist/assets/cli-ruby/lib/graphql/api_versions.graphql +0 -6
- package/dist/assets/cli-ruby/lib/graphql/convert_dev_to_test_store.graphql +0 -10
- package/dist/assets/cli-ruby/lib/graphql/create_app.graphql +0 -20
- package/dist/assets/cli-ruby/lib/graphql/create_customer.graphql +0 -9
- package/dist/assets/cli-ruby/lib/graphql/create_draft_order.graphql +0 -8
- package/dist/assets/cli-ruby/lib/graphql/create_product.graphql +0 -9
- package/dist/assets/cli-ruby/lib/graphql/extension_create.graphql +0 -37
- package/dist/assets/cli-ruby/lib/graphql/extension_update_draft.graphql +0 -19
- package/dist/assets/cli-ruby/lib/graphql/fetch_specifications.graphql +0 -14
- package/dist/assets/cli-ruby/lib/graphql/find_organization.graphql +0 -18
- package/dist/assets/cli-ruby/lib/graphql/find_organization_with_apps.graphql +0 -20
- package/dist/assets/cli-ruby/lib/graphql/get_app_by_api_key.graphql +0 -9
- package/dist/assets/cli-ruby/lib/graphql/get_app_urls.graphql +0 -6
- package/dist/assets/cli-ruby/lib/graphql/get_extension_registrations.graphql +0 -28
- package/dist/assets/cli-ruby/lib/graphql/get_variant_id.graphql +0 -16
- package/dist/assets/cli-ruby/lib/graphql/update_dashboard_urls.graphql +0 -8
- package/dist/assets/cli-ruby/lib/project_types/extension/cli.rb +0 -75
- package/dist/assets/cli-ruby/lib/project_types/extension/commands/extension_command.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/extension/commands/serve.rb +0 -164
- package/dist/assets/cli-ruby/lib/project_types/extension/errors.rb +0 -9
- package/dist/assets/cli-ruby/lib/project_types/extension/extension_project.rb +0 -151
- package/dist/assets/cli-ruby/lib/project_types/extension/extension_project_keys.rb +0 -12
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo.rb +0 -50
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_config.rb +0 -59
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_dependencies.rb +0 -28
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_runtime.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_serve.rb +0 -115
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_setup.rb +0 -54
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_setup_step.rb +0 -31
- package/dist/assets/cli-ruby/lib/project_types/extension/features/argo_setup_steps.rb +0 -51
- package/dist/assets/cli-ruby/lib/project_types/extension/features/runtimes/admin.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/extension/features/runtimes/base.rb +0 -19
- package/dist/assets/cli-ruby/lib/project_types/extension/features/runtimes/checkout_post_purchase.rb +0 -23
- package/dist/assets/cli-ruby/lib/project_types/extension/features/runtimes/checkout_ui_extension.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/extension/loaders/project.rb +0 -50
- package/dist/assets/cli-ruby/lib/project_types/extension/loaders/specification_handler.rb +0 -22
- package/dist/assets/cli-ruby/lib/project_types/extension/messages/message_loading.rb +0 -34
- package/dist/assets/cli-ruby/lib/project_types/extension/messages/messages.rb +0 -320
- package/dist/assets/cli-ruby/lib/project_types/extension/models/app.rb +0 -14
- package/dist/assets/cli-ruby/lib/project_types/extension/models/lazy_specification_handler.rb +0 -12
- package/dist/assets/cli-ruby/lib/project_types/extension/models/specification.rb +0 -41
- package/dist/assets/cli-ruby/lib/project_types/extension/models/specification_handlers/default.rb +0 -145
- package/dist/assets/cli-ruby/lib/project_types/extension/models/specification_handlers/theme_app_extension.rb +0 -134
- package/dist/assets/cli-ruby/lib/project_types/extension/models/specifications.rb +0 -91
- package/dist/assets/cli-ruby/lib/project_types/extension/models/validation_error.rb +0 -17
- package/dist/assets/cli-ruby/lib/project_types/extension/models/version.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/configure_features.rb +0 -73
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/configure_options.rb +0 -21
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/converters/validation_error_converter.rb +0 -25
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/converters/version_converter.rb +0 -28
- package/dist/assets/cli-ruby/lib/project_types/extension/tasks/fetch_specifications.rb +0 -21
- package/dist/assets/cli-ruby/lib/project_types/node/cli.rb +0 -12
- package/dist/assets/cli-ruby/lib/project_types/node/forms/create.rb +0 -45
- package/dist/assets/cli-ruby/lib/project_types/node/messages/messages.rb +0 -33
- package/dist/assets/cli-ruby/lib/project_types/php/cli.rb +0 -16
- package/dist/assets/cli-ruby/lib/project_types/php/forms/create.rb +0 -44
- package/dist/assets/cli-ruby/lib/project_types/php/messages/messages.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/rails/cli.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/rails/forms/create.rb +0 -75
- package/dist/assets/cli-ruby/lib/project_types/rails/gem.rb +0 -110
- package/dist/assets/cli-ruby/lib/project_types/rails/messages/messages.rb +0 -101
- package/dist/assets/cli-ruby/lib/project_types/script/cli.rb +0 -27
- package/dist/assets/cli-ruby/lib/project_types/script/commands/connect.rb +0 -16
- package/dist/assets/cli-ruby/lib/project_types/script/commands/create.rb +0 -24
- package/dist/assets/cli-ruby/lib/project_types/script/commands/javy.rb +0 -24
- package/dist/assets/cli-ruby/lib/project_types/script/commands/push.rb +0 -26
- package/dist/assets/cli-ruby/lib/project_types/script/loaders/project.rb +0 -46
- package/dist/assets/cli-ruby/lib/project_types/script/loaders/specification_handler.rb +0 -22
- package/dist/assets/cli-ruby/lib/project_types/script/messages/messages.rb +0 -11
- package/dist/assets/cli-ruby/lib/project_types/theme/cli.rb +0 -33
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/common/root_helper.rb +0 -94
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/common/shop_helper.rb +0 -13
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/console.rb +0 -23
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/delete.rb +0 -70
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/init.rb +0 -46
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/list.rb +0 -33
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/open.rb +0 -73
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/package.rb +0 -73
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/publish.rb +0 -49
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/pull.rb +0 -118
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/push.rb +0 -160
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/serve.rb +0 -91
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/share.rb +0 -62
- package/dist/assets/cli-ruby/lib/project_types/theme/commands/token.rb +0 -22
- package/dist/assets/cli-ruby/lib/project_types/theme/conversions/base_glob.rb +0 -65
- package/dist/assets/cli-ruby/lib/project_types/theme/conversions/ignore_glob.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/theme/conversions/include_glob.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/theme/forms/confirm_store.rb +0 -15
- package/dist/assets/cli-ruby/lib/project_types/theme/forms/select.rb +0 -34
- package/dist/assets/cli-ruby/lib/project_types/theme/messages/messages.rb +0 -429
- package/dist/assets/cli-ruby/lib/project_types/theme/models/specification_handlers/theme.rb +0 -19
- package/dist/assets/cli-ruby/lib/project_types/theme/presenters/theme_presenter.rb +0 -48
- package/dist/assets/cli-ruby/lib/project_types/theme/presenters/themes_presenter.rb +0 -29
- package/dist/assets/cli-ruby/lib/project_types/theme/ui/sync_progress_bar.rb +0 -20
- package/dist/assets/cli-ruby/lib/rubygems_plugin.rb +0 -26
- package/dist/assets/cli-ruby/lib/shopify_cli/admin_api.rb +0 -160
- package/dist/assets/cli-ruby/lib/shopify_cli/api.rb +0 -130
- package/dist/assets/cli-ruby/lib/shopify_cli/command/project_command.rb +0 -31
- package/dist/assets/cli-ruby/lib/shopify_cli/command/sub_command.rb +0 -20
- package/dist/assets/cli-ruby/lib/shopify_cli/command.rb +0 -166
- package/dist/assets/cli-ruby/lib/shopify_cli/commands.rb +0 -21
- package/dist/assets/cli-ruby/lib/shopify_cli/constants.rb +0 -101
- package/dist/assets/cli-ruby/lib/shopify_cli/context.rb +0 -709
- package/dist/assets/cli-ruby/lib/shopify_cli/core/cli_version.rb +0 -20
- package/dist/assets/cli-ruby/lib/shopify_cli/core/entry_point.rb +0 -64
- package/dist/assets/cli-ruby/lib/shopify_cli/core/executor.rb +0 -23
- package/dist/assets/cli-ruby/lib/shopify_cli/core/finalize.rb +0 -13
- package/dist/assets/cli-ruby/lib/shopify_cli/core/monorail.rb +0 -122
- package/dist/assets/cli-ruby/lib/shopify_cli/core.rb +0 -8
- package/dist/assets/cli-ruby/lib/shopify_cli/db.rb +0 -114
- package/dist/assets/cli-ruby/lib/shopify_cli/environment.rb +0 -217
- package/dist/assets/cli-ruby/lib/shopify_cli/exception_reporter.rb +0 -80
- package/dist/assets/cli-ruby/lib/shopify_cli/feature.rb +0 -95
- package/dist/assets/cli-ruby/lib/shopify_cli/file_system_listener.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/form.rb +0 -42
- package/dist/assets/cli-ruby/lib/shopify_cli/git.rb +0 -320
- package/dist/assets/cli-ruby/lib/shopify_cli/github/issue_url_generator.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/github.rb +0 -5
- package/dist/assets/cli-ruby/lib/shopify_cli/helpers/haikunator.rb +0 -92
- package/dist/assets/cli-ruby/lib/shopify_cli/helpers.rb +0 -5
- package/dist/assets/cli-ruby/lib/shopify_cli/http_request.rb +0 -43
- package/dist/assets/cli-ruby/lib/shopify_cli/identity_auth/env_auth_token.rb +0 -34
- package/dist/assets/cli-ruby/lib/shopify_cli/identity_auth.rb +0 -332
- package/dist/assets/cli-ruby/lib/shopify_cli/js_system.rb +0 -115
- package/dist/assets/cli-ruby/lib/shopify_cli/lazy_delegator.rb +0 -55
- package/dist/assets/cli-ruby/lib/shopify_cli/messages/messages.rb +0 -863
- package/dist/assets/cli-ruby/lib/shopify_cli/method_object.rb +0 -123
- package/dist/assets/cli-ruby/lib/shopify_cli/migrator/migration.rb +0 -27
- package/dist/assets/cli-ruby/lib/shopify_cli/migrator/migrations/1631709766_noop.rb +0 -13
- package/dist/assets/cli-ruby/lib/shopify_cli/migrator/migrations/1633691650_merge_reporting_configuration.rb +0 -41
- package/dist/assets/cli-ruby/lib/shopify_cli/migrator.rb +0 -46
- package/dist/assets/cli-ruby/lib/shopify_cli/options.rb +0 -40
- package/dist/assets/cli-ruby/lib/shopify_cli/partners_api/app_extensions/job.rb +0 -36
- package/dist/assets/cli-ruby/lib/shopify_cli/partners_api/app_extensions.rb +0 -46
- package/dist/assets/cli-ruby/lib/shopify_cli/partners_api/organizations.rb +0 -45
- package/dist/assets/cli-ruby/lib/shopify_cli/partners_api.rb +0 -91
- package/dist/assets/cli-ruby/lib/shopify_cli/project.rb +0 -199
- package/dist/assets/cli-ruby/lib/shopify_cli/project_type.rb +0 -66
- package/dist/assets/cli-ruby/lib/shopify_cli/reporting_configuration_controller.rb +0 -29
- package/dist/assets/cli-ruby/lib/shopify_cli/resolve_constant.rb +0 -25
- package/dist/assets/cli-ruby/lib/shopify_cli/resources/env_file.rb +0 -108
- package/dist/assets/cli-ruby/lib/shopify_cli/resources.rb +0 -5
- package/dist/assets/cli-ruby/lib/shopify_cli/result.rb +0 -448
- package/dist/assets/cli-ruby/lib/shopify_cli/shopifolk.rb +0 -82
- package/dist/assets/cli-ruby/lib/shopify_cli/task.rb +0 -20
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/confirm_store.rb +0 -18
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/create_api_client.rb +0 -40
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_authenticated.rb +0 -19
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_dev_store.rb +0 -41
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_env.rb +0 -90
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_git_dependency.rb +0 -14
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_loopback_url.rb +0 -20
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/ensure_project_type.rb +0 -14
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/select_org_and_shop.rb +0 -81
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks/update_dashboard_urls.rb +0 -57
- package/dist/assets/cli-ruby/lib/shopify_cli/tasks.rb +0 -44
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/backoff_helper.rb +0 -47
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/cdn_fonts.rb +0 -82
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/certificate_manager.rb +0 -79
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/errors.rb +0 -9
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/header_hash.rb +0 -98
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hooks/file_change_hook.rb +0 -77
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/remote_file_deleter.rb +0 -62
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/remote_file_reloader.rb +0 -63
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/hot-reload-no-script.html +0 -27
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/hot_reload.js +0 -48
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/sse_client.js +0 -43
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/theme.js +0 -114
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/resources/theme_extension.js +0 -121
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/script_injector.rb +0 -57
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload/sections_index.rb +0 -50
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload.rb +0 -75
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/local_assets.rb +0 -101
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +0 -313
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy_param_builder.rb +0 -84
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/reload_mode.rb +0 -34
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/remote_watcher/json_files_update_job.rb +0 -35
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/remote_watcher.rb +0 -44
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/sse.rb +0 -75
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/watcher.rb +0 -64
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/web_server.rb +0 -140
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server.rb +0 -332
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/development_theme.rb +0 -101
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/app_extension.rb +0 -40
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/hooks/file_change_hook.rb +0 -76
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/hot_reload/script_injector.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/hot_reload.rb +0 -13
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/local_assets.rb +0 -31
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/proxy_param_builder.rb +0 -94
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server/watcher.rb +0 -49
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server.rb +0 -175
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/host_theme.rb +0 -109
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/ignore_helper.rb +0 -35
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/syncer/extension_serve_job.rb +0 -120
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/syncer/operation.rb +0 -25
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/syncer.rb +0 -100
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/ui/host_theme_progress_bar.rb +0 -35
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/ui/host_theme_raw_progress_bar.rb +0 -40
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/file.rb +0 -133
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/filter/path_matcher.rb +0 -38
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/ignore_filter.rb +0 -112
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/ignore_helper.rb +0 -37
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/include_filter.rb +0 -67
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/mime_type.rb +0 -34
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/notifier.rb +0 -52
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/api.rb +0 -109
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_dev_server.rb +0 -93
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_middleware.rb +0 -97
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/remote_evaluator.rb +0 -166
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/resources/success.html +0 -78
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/resources/template.liquid +0 -15
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/snippet.rb +0 -81
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl.rb +0 -88
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/root.rb +0 -62
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/checksums.rb +0 -66
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/downloader.rb +0 -63
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/error_reporter.rb +0 -45
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/merger.rb +0 -53
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/operation.rb +0 -49
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/standard_reporter.rb +0 -32
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/unsupported_script_warning.rb +0 -90
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/bulk.rb +0 -133
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/bulk_item.rb +0 -64
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/bulk_job.rb +0 -139
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/bulk_request.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/apply_to_all.rb +0 -41
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/apply_to_all_form.rb +0 -37
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/base_strategy_form.rb +0 -64
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/select_delete_strategy.rb +0 -29
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/forms/select_update_strategy.rb +0 -30
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/json_delete_handler.rb +0 -49
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader/json_update_handler.rb +0 -71
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer/uploader.rb +0 -231
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb +0 -391
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/theme.rb +0 -212
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/theme_access_api.rb +0 -89
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb +0 -101
- package/dist/assets/cli-ruby/lib/shopify_cli/thread_pool/job.rb +0 -35
- package/dist/assets/cli-ruby/lib/shopify_cli/thread_pool.rb +0 -49
- package/dist/assets/cli-ruby/lib/shopify_cli/transform_data_structure.rb +0 -87
- package/dist/assets/cli-ruby/lib/shopify_cli/utilities.rb +0 -21
- package/dist/assets/cli-ruby/lib/shopify_cli/version.rb +0 -3
- package/dist/assets/cli-ruby/lib/shopify_cli.rb +0 -182
- package/dist/assets/cli-ruby/shipit.rubygems.yml +0 -3
- package/dist/assets/cli-ruby/shopify-cli.gemspec +0 -46
- package/dist/assets/cli-ruby/shopify-dev +0 -16
- package/dist/assets/cli-ruby/test/minitest_ext.rb +0 -115
- package/dist/assets/cli-ruby/test/project_types/extension/extension_test_helpers.rb +0 -70
- package/dist/assets/cli-ruby/test/shopify-cli/migrator/migrations/migration_helper.rb +0 -20
- package/dist/assets/cli-ruby/test/test_helpers.rb +0 -16
- package/dist/assets/cli-ruby/utilities/constants.rb +0 -7
- package/dist/assets/cli-ruby/utilities/docker/container.rb +0 -104
- package/dist/assets/cli-ruby/utilities/docker.rb +0 -89
- package/dist/assets/cli-ruby/utilities/utilities.rb +0 -6
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/REVISION +0 -1
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/autocall.rb +0 -21
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/base_command.rb +0 -49
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/command_registry.rb +0 -94
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/config.rb +0 -133
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb +0 -123
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb +0 -79
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/ini.rb +0 -102
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/levenshtein.rb +0 -82
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/logger.rb +0 -82
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/resolver.rb +0 -60
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/ruby_backports/enumerable.rb +0 -6
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/support/test_helper.rb +0 -244
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/support.rb +0 -9
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/system.rb +0 -243
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb +0 -193
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/version.rb +0 -5
- package/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit.rb +0 -60
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/REVISION +0 -1
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/ansi.rb +0 -157
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/color.rb +0 -84
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/formatter.rb +0 -193
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame/frame_stack.rb +0 -98
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame/frame_style/box.rb +0 -166
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame/frame_style/bracket.rb +0 -139
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame/frame_style.rb +0 -120
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/frame.rb +0 -269
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/glyph.rb +0 -84
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/os.rb +0 -73
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/printer.rb +0 -59
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/progress.rb +0 -90
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/progress_plain.rb +0 -50
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/prompt/interactive_options.rb +0 -484
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/prompt/options_handler.rb +0 -29
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/prompt.rb +0 -282
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/spinner/async.rb +0 -40
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/spinner/spin_group.rb +0 -263
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/spinner.rb +0 -66
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb +0 -232
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/terminal.rb +0 -46
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/truncater.rb +0 -102
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/version.rb +0 -5
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/widgets/base.rb +0 -27
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/widgets/status.rb +0 -61
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/widgets.rb +0 -77
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/wrap.rb +0 -56
- package/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui.rb +0 -234
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/LICENSE +0 -22
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/README.md +0 -67
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/Rakefile +0 -54
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb +0 -57
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/ruby2_keywords.gemspec +0 -18
- package/dist/assets/cli-ruby/vendor/deps/ruby2_keywords/test/test_keyword.rb +0 -41
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/REVISION +0 -1
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/errors.rb +0 -114
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/property.rb +0 -168
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/property_collection.rb +0 -83
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/validations/ancestor.rb +0 -27
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/validations.rb +0 -8
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties/version.rb +0 -3
- package/dist/assets/cli-ruby/vendor/deps/smart_properties/lib/smart_properties.rb +0 -174
- package/dist/assets/cli-ruby/vendor/deps/webrick/Gemfile +0 -3
- package/dist/assets/cli-ruby/vendor/deps/webrick/LICENSE.txt +0 -22
- package/dist/assets/cli-ruby/vendor/deps/webrick/README.md +0 -61
- package/dist/assets/cli-ruby/vendor/deps/webrick/Rakefile +0 -10
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/accesslog.rb +0 -157
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/cgi.rb +0 -313
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/compat.rb +0 -36
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/config.rb +0 -158
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/cookie.rb +0 -172
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/htmlutils.rb +0 -30
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/authenticator.rb +0 -117
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/basicauth.rb +0 -116
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/digestauth.rb +0 -395
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/htdigest.rb +0 -132
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/htgroup.rb +0 -97
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/htpasswd.rb +0 -158
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth/userdb.rb +0 -53
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpauth.rb +0 -96
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpproxy.rb +0 -354
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httprequest.rb +0 -636
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpresponse.rb +0 -564
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/https.rb +0 -152
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpserver.rb +0 -294
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/abstract.rb +0 -152
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/cgi_runner.rb +0 -47
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/cgihandler.rb +0 -126
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/erbhandler.rb +0 -88
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/filehandler.rb +0 -552
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet/prochandler.rb +0 -47
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpservlet.rb +0 -23
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpstatus.rb +0 -194
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httputils.rb +0 -512
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/httpversion.rb +0 -76
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/log.rb +0 -156
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/server.rb +0 -381
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/ssl.rb +0 -215
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/utils.rb +0 -265
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick/version.rb +0 -18
- package/dist/assets/cli-ruby/vendor/deps/webrick/lib/webrick.rb +0 -232
- package/dist/assets/cli-ruby/vendor/deps/webrick/webrick.gemspec +0 -74
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/commands/help.rb +0 -20
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/commands/new.rb +0 -21
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/commands.rb +0 -18
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/entry_point.rb +0 -10
- package/dist/assets/cli-ruby/vendor/gen/lib/gen/generator.rb +0 -165
- package/dist/assets/cli-ruby/vendor/gen/lib/gen.rb +0 -39
- package/dist/assets/cli-ruby/vendor/gen/template/Gemfile +0 -10
- package/dist/assets/cli-ruby/vendor/gen/template/README.md +0 -1
- package/dist/assets/cli-ruby/vendor/gen/template/bin/testunit +0 -23
- package/dist/assets/cli-ruby/vendor/gen/template/bin/update-deps +0 -97
- package/dist/assets/cli-ruby/vendor/gen/template/dev-gems.yml +0 -3
- package/dist/assets/cli-ruby/vendor/gen/template/dev-vendor.yml +0 -4
- package/dist/assets/cli-ruby/vendor/gen/template/exe/__app__-gems +0 -17
- package/dist/assets/cli-ruby/vendor/gen/template/exe/__app__-vendor +0 -18
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__/commands/example.rb +0 -19
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__/commands/help.rb +0 -21
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__/commands.rb +0 -18
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__/entry_point.rb +0 -10
- package/dist/assets/cli-ruby/vendor/gen/template/lib/__app__.rb +0 -33
- package/dist/assets/cli-ruby/vendor/gen/template/test/example_test.rb +0 -17
- package/dist/assets/cli-ruby/vendor/gen/template/test/test_helper.rb +0 -22
- package/dist/assets/cli-ruby/vendor/lib/semantic/LICENSE +0 -20
- package/dist/assets/cli-ruby/vendor/lib/semantic/semantic.rb +0 -4
- package/dist/assets/cli-ruby/vendor/lib/semantic/version.rb +0 -179
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
module ShopifyCLI
|
|
2
|
-
##
|
|
3
|
-
# ShopifyCLI::Feature contains the logic to hide and show features across the CLI
|
|
4
|
-
# These features can be either commands or project types currently.
|
|
5
|
-
#
|
|
6
|
-
# Feature flags will persist between runs so if the flag is enabled or disabled,
|
|
7
|
-
# it will still be in that same state on the next cli invocation.
|
|
8
|
-
class Feature
|
|
9
|
-
SECTION = "features"
|
|
10
|
-
|
|
11
|
-
##
|
|
12
|
-
# ShopifyCLI::Feature::Set is included on commands and projects to allow you to hide
|
|
13
|
-
# and enable projects and commands based on feature flags.
|
|
14
|
-
module Set
|
|
15
|
-
##
|
|
16
|
-
# will hide a feature, either a project_type or a command
|
|
17
|
-
#
|
|
18
|
-
# #### Parameters
|
|
19
|
-
#
|
|
20
|
-
# * `feature_set` - either a single, or array of symbols that represent feature sets
|
|
21
|
-
#
|
|
22
|
-
# #### Example
|
|
23
|
-
#
|
|
24
|
-
# module ShopifyCLI
|
|
25
|
-
# module Commands
|
|
26
|
-
# class Config < ShopifyCLI::Command
|
|
27
|
-
# hidden_feature(feature_set: :basic)
|
|
28
|
-
# ....
|
|
29
|
-
#
|
|
30
|
-
def hidden_feature(feature_set: [])
|
|
31
|
-
@feature_hidden = true
|
|
32
|
-
@hidden_feature_set = Array(feature_set).compact
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
##
|
|
36
|
-
# will return if the feature has been hidden or not
|
|
37
|
-
#
|
|
38
|
-
# #### Returns
|
|
39
|
-
#
|
|
40
|
-
# * `is_hidden` - returns true if the feature has been hidden and false otherwise
|
|
41
|
-
#
|
|
42
|
-
# #### Example
|
|
43
|
-
#
|
|
44
|
-
# ShopifyCLI::Commands::Config.hidden?
|
|
45
|
-
#
|
|
46
|
-
def hidden?
|
|
47
|
-
enabled = (@hidden_feature_set || []).any? do |feature|
|
|
48
|
-
Feature.enabled?(feature)
|
|
49
|
-
end
|
|
50
|
-
@feature_hidden && !enabled
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
class << self
|
|
55
|
-
##
|
|
56
|
-
# will enable a feature in the CLI.
|
|
57
|
-
#
|
|
58
|
-
# #### Parameters
|
|
59
|
-
#
|
|
60
|
-
# * `feature` - a symbol representing the flag to be enabled
|
|
61
|
-
def enable(feature)
|
|
62
|
-
set(feature, true)
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
##
|
|
66
|
-
# will disable a feature in the CLI.
|
|
67
|
-
#
|
|
68
|
-
# #### Parameters
|
|
69
|
-
#
|
|
70
|
-
# * `feature` - a symbol representing the flag to be disabled
|
|
71
|
-
def disable(feature)
|
|
72
|
-
set(feature, false)
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
##
|
|
76
|
-
# will check if the feature has been enabled
|
|
77
|
-
#
|
|
78
|
-
# #### Parameters
|
|
79
|
-
#
|
|
80
|
-
# * `feature` - a symbol representing a flag that the status should be requested
|
|
81
|
-
#
|
|
82
|
-
# #### Returns
|
|
83
|
-
#
|
|
84
|
-
# * `is_enabled` - will be true if the feature has been enabled.
|
|
85
|
-
def enabled?(feature)
|
|
86
|
-
return false if feature.nil?
|
|
87
|
-
ShopifyCLI::Config.get_bool(SECTION, feature.to_s)
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
def set(feature, value)
|
|
91
|
-
ShopifyCLI::Config.set(SECTION, feature.to_s, value)
|
|
92
|
-
end
|
|
93
|
-
end
|
|
94
|
-
end
|
|
95
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "listen"
|
|
3
|
-
require "observer"
|
|
4
|
-
|
|
5
|
-
module ShopifyCLI
|
|
6
|
-
class FileSystemListener
|
|
7
|
-
include Observable
|
|
8
|
-
|
|
9
|
-
def initialize(root:, force_poll:, ignore_regex:)
|
|
10
|
-
@root = root
|
|
11
|
-
@force_poll = force_poll
|
|
12
|
-
@ignore_regex = ignore_regex
|
|
13
|
-
|
|
14
|
-
@listener = Listen.to(@root, force_polling: @force_poll, ignore: @ignore_regex) do |updated, added, removed|
|
|
15
|
-
changed
|
|
16
|
-
notify_observers(updated, added, removed)
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
def start
|
|
21
|
-
@listener.start
|
|
22
|
-
rescue ArgumentError
|
|
23
|
-
# Ignore errors during the transition of 'listen' events
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def stop
|
|
27
|
-
@listener.stop
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
require "shopify_cli"
|
|
2
|
-
|
|
3
|
-
module ShopifyCLI
|
|
4
|
-
class Form
|
|
5
|
-
class << self
|
|
6
|
-
def ask(ctx, args, flags)
|
|
7
|
-
attrs = {}
|
|
8
|
-
(@positional_arguments || []).each { |name| attrs[name] = args.shift }
|
|
9
|
-
return nil if attrs.any? { |_k, v| v.nil? }
|
|
10
|
-
(@flag_arguments || []).each { |arg| attrs[arg] = flags[arg] }
|
|
11
|
-
form = new(ctx, args, attrs)
|
|
12
|
-
begin
|
|
13
|
-
form.ask
|
|
14
|
-
form
|
|
15
|
-
rescue ShopifyCLI::Abort => err
|
|
16
|
-
ctx.puts(err.message)
|
|
17
|
-
nil
|
|
18
|
-
rescue ShopifyCLI::AbortSilent
|
|
19
|
-
nil
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def positional_arguments(*args)
|
|
24
|
-
@positional_arguments = args
|
|
25
|
-
attr_accessor(*args)
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
def flag_arguments(*args)
|
|
29
|
-
@flag_arguments = args
|
|
30
|
-
attr_accessor(*args)
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
attr_accessor :ctx, :xargs
|
|
35
|
-
|
|
36
|
-
def initialize(ctx, xargs, attributes)
|
|
37
|
-
@ctx = ctx
|
|
38
|
-
@xargs = xargs
|
|
39
|
-
attributes.each { |k, v| send("#{k}=", v) unless v.nil? }
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
module ShopifyCLI
|
|
2
|
-
##
|
|
3
|
-
# ShopifyCLI::Git wraps git functionality to make it easier to integrate will
|
|
4
|
-
# git.
|
|
5
|
-
class Git
|
|
6
|
-
class << self
|
|
7
|
-
# Check if Git exists in the environment
|
|
8
|
-
def exists?(ctx)
|
|
9
|
-
_output, status = ctx.capture2e("git", "version")
|
|
10
|
-
status.success?
|
|
11
|
-
rescue Errno::ENOENT # git is not installed
|
|
12
|
-
false
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Check if the current working directory is a Git repository
|
|
16
|
-
def available?(ctx)
|
|
17
|
-
_output, status = ctx.capture2e("git", "status")
|
|
18
|
-
status.success?
|
|
19
|
-
rescue Errno::ENOENT # git is not installed
|
|
20
|
-
false
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
##
|
|
24
|
-
# will return the current sha of the cli repo
|
|
25
|
-
#
|
|
26
|
-
# #### Parameters
|
|
27
|
-
#
|
|
28
|
-
# * `dir` - the directory of the git repo. This defaults to the cli repo
|
|
29
|
-
# * `ctx` - the current running context of your command
|
|
30
|
-
#
|
|
31
|
-
# #### Returns
|
|
32
|
-
#
|
|
33
|
-
# * `sha_string` - string of the sha of the most recent commit to the repo
|
|
34
|
-
#
|
|
35
|
-
# #### Example
|
|
36
|
-
#
|
|
37
|
-
# ShopifyCLI::Git.sha
|
|
38
|
-
#
|
|
39
|
-
# Some environments don't have git in PATH and this prevents
|
|
40
|
-
# the execution from raising an error
|
|
41
|
-
# https://app.bugsnag.com/shopify/shopify-cli/errors/615dd36365ce57000889d4c5
|
|
42
|
-
def sha(dir: Dir.pwd, ctx: Context.new)
|
|
43
|
-
if available?(ctx)
|
|
44
|
-
rev_parse("HEAD", dir: dir, ctx: ctx)
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
##
|
|
49
|
-
# returns array with components of git clone command
|
|
50
|
-
#
|
|
51
|
-
# #### Parameters
|
|
52
|
-
#
|
|
53
|
-
# * `repo` - repo url without branch name
|
|
54
|
-
# * `dest` - a filepath to where the repo should be cloned to
|
|
55
|
-
# * `branch` - branch name when cloning
|
|
56
|
-
#
|
|
57
|
-
# #### Returns
|
|
58
|
-
#
|
|
59
|
-
# * array of strings
|
|
60
|
-
#
|
|
61
|
-
# #### Example
|
|
62
|
-
#
|
|
63
|
-
# ["clone", "--single-branch", "--branch", "test-branch", "test-app"]
|
|
64
|
-
#
|
|
65
|
-
def git_clone_command(repo, dest, branch)
|
|
66
|
-
if branch
|
|
67
|
-
["clone", "--single-branch", "--branch", branch, repo, dest]
|
|
68
|
-
else
|
|
69
|
-
["clone", "--single-branch", repo, dest]
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
##
|
|
74
|
-
# calls git to clone a new repo into a supplied destination,
|
|
75
|
-
# it will also call a supplied block with the percentage of clone completion
|
|
76
|
-
#
|
|
77
|
-
# #### Parameters
|
|
78
|
-
#
|
|
79
|
-
# * `repo_with_branch` - a git url for git to clone the repo from
|
|
80
|
-
# * `dest` - a filepath to where the repo should be cloned to
|
|
81
|
-
# * `ctx` - the current running context of your command, defaults to a new context.
|
|
82
|
-
#
|
|
83
|
-
# #### Returns
|
|
84
|
-
#
|
|
85
|
-
# * `sha_string` - string of the sha of the most recent commit to the repo
|
|
86
|
-
#
|
|
87
|
-
# #### Example
|
|
88
|
-
#
|
|
89
|
-
# ShopifyCLI::Git.raw_clone('git@github.com:shopify/test.git', 'test-app')
|
|
90
|
-
#
|
|
91
|
-
def raw_clone(repo_with_branch, dest, ctx: Context.new)
|
|
92
|
-
if Dir.exist?(dest) && !Dir.empty?(dest)
|
|
93
|
-
ctx.abort(ctx.message("core.git.error.directory_exists"))
|
|
94
|
-
else
|
|
95
|
-
msg = []
|
|
96
|
-
# require at usage point to not slow down CLI startup
|
|
97
|
-
# https://github.com/Shopify/shopify-cli/pull/698#discussion_r444342445
|
|
98
|
-
require "open3"
|
|
99
|
-
|
|
100
|
-
repo, branch = repo_with_branch.split("#")
|
|
101
|
-
git_cmd = git_clone_command(repo, dest, branch)
|
|
102
|
-
|
|
103
|
-
success = Open3.popen3("git", *git_cmd, "--progress") do |_stdin, _stdout, stderr, thread|
|
|
104
|
-
msg = clone_progress(stderr, bar: nil)
|
|
105
|
-
|
|
106
|
-
thread.value
|
|
107
|
-
end.success?
|
|
108
|
-
|
|
109
|
-
ctx.abort((msg.join("\n"))) unless success
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
##
|
|
114
|
-
# calls git to clone a new repo into a supplied destination,
|
|
115
|
-
# it will also output progress of the cloning process into a new progress bar
|
|
116
|
-
#
|
|
117
|
-
# #### Parameters
|
|
118
|
-
#
|
|
119
|
-
# * `repo_with_branch` - a git url for git to clone the repo from
|
|
120
|
-
# * `dest` - a filepath to where the repo should be cloned to
|
|
121
|
-
# * `ctx` - the current running context of your command, defaults to a new context.
|
|
122
|
-
#
|
|
123
|
-
# #### Returns
|
|
124
|
-
#
|
|
125
|
-
# * `sha_string` - string of the sha of the most recent commit to the repo
|
|
126
|
-
#
|
|
127
|
-
# #### Example
|
|
128
|
-
#
|
|
129
|
-
# ShopifyCLI::Git.clone('git@github.com:shopify/test.git', 'test-app')
|
|
130
|
-
#
|
|
131
|
-
def clone(repo_with_branch, dest, ctx: Context.new)
|
|
132
|
-
if Dir.exist?(dest) && !Dir.empty?(dest)
|
|
133
|
-
ctx.abort(ctx.message("core.git.error.directory_exists"))
|
|
134
|
-
else
|
|
135
|
-
msg = []
|
|
136
|
-
# require at usage point to not slow down CLI startup
|
|
137
|
-
# https://github.com/Shopify/shopify-cli/pull/698#discussion_r444342445
|
|
138
|
-
require "open3"
|
|
139
|
-
|
|
140
|
-
repo, branch = repo_with_branch.split("#")
|
|
141
|
-
git_cmd = git_clone_command(repo, dest, branch)
|
|
142
|
-
|
|
143
|
-
success_message = ctx.message("core.git.cloned", dest)
|
|
144
|
-
|
|
145
|
-
CLI::UI::Frame.open(ctx.message("core.git.cloning", repo, dest), success_text: success_message) do
|
|
146
|
-
CLI::UI::Progress.progress do |bar|
|
|
147
|
-
success = Open3.popen3("git", *git_cmd, "--progress") do |_stdin, _stdout, stderr, thread|
|
|
148
|
-
msg = clone_progress(stderr, bar: bar)
|
|
149
|
-
|
|
150
|
-
thread.value
|
|
151
|
-
end.success?
|
|
152
|
-
|
|
153
|
-
ctx.abort((msg.join("\n"))) unless success
|
|
154
|
-
bar.tick(set_percent: 1.0)
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
##
|
|
161
|
-
# will fetch the repos list of branches.
|
|
162
|
-
#
|
|
163
|
-
# #### Parameters
|
|
164
|
-
#
|
|
165
|
-
# * `ctx` - the current running context of your command, defaults to a new context.
|
|
166
|
-
#
|
|
167
|
-
# #### Returns
|
|
168
|
-
#
|
|
169
|
-
# * `branches` - [String] an array of strings that are branch names
|
|
170
|
-
#
|
|
171
|
-
# #### Example
|
|
172
|
-
#
|
|
173
|
-
# branches = ShopifyCLI::Git.branches(@ctx)
|
|
174
|
-
#
|
|
175
|
-
def branches(ctx)
|
|
176
|
-
output, status = ctx.capture2e("git", "branch", "--list", "--format=%(refname:short)")
|
|
177
|
-
ctx.abort(ctx.message("core.git.error.no_branches_found")) unless status.success?
|
|
178
|
-
|
|
179
|
-
branches = if output == ""
|
|
180
|
-
["master"]
|
|
181
|
-
else
|
|
182
|
-
output.split("\n")
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
branches
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
##
|
|
189
|
-
# Run git three-way file merge (it doesn't require an initialized git repository)
|
|
190
|
-
#
|
|
191
|
-
# #### Parameters
|
|
192
|
-
#
|
|
193
|
-
# * `current_file - string path of the current file
|
|
194
|
-
# * `base_file` - string path of the base file
|
|
195
|
-
# * `other_file` - string path of the other file
|
|
196
|
-
# * `opts` - list of "git merge-file" options. Valid values:
|
|
197
|
-
# - "-q" - do not warn about conflicts
|
|
198
|
-
# - "--diff3" - show conflicts
|
|
199
|
-
# - "--ours" - resolve conflicts favoring lines from `current_file`
|
|
200
|
-
# - "--theirs" - resolve conflicts favoring lines from `other_file`
|
|
201
|
-
# - "--union" - resolve conflicts favoring lines from both files
|
|
202
|
-
# - "-p" - send results to standard output instead of
|
|
203
|
-
# overwriting the `current_file`
|
|
204
|
-
# * `ctx` - the current running context of your command, defaults to a new context
|
|
205
|
-
#
|
|
206
|
-
# #### Returns
|
|
207
|
-
#
|
|
208
|
-
# * standard output from git
|
|
209
|
-
#
|
|
210
|
-
# #### Example
|
|
211
|
-
#
|
|
212
|
-
# output = ShopifyCLI::Git.merge_file(current_file, base_file, other_file, opts, ctx: ctx)
|
|
213
|
-
#
|
|
214
|
-
def merge_file(current_file, base_file, other_file, opts = [], ctx: Context.new)
|
|
215
|
-
output, status = ctx.capture2e("git", "merge-file", current_file, base_file, other_file, *opts)
|
|
216
|
-
|
|
217
|
-
unless status.success?
|
|
218
|
-
ctx.abort(ctx.message("core.git.error.merge_failed"))
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
output
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
##
|
|
225
|
-
# will initialize a new repo in the current directory. This will output
|
|
226
|
-
# if it was successful or not.
|
|
227
|
-
#
|
|
228
|
-
# #### Parameters
|
|
229
|
-
#
|
|
230
|
-
# * `ctx` - the current running context of your command, defaults to a new context.
|
|
231
|
-
#
|
|
232
|
-
# #### Example
|
|
233
|
-
#
|
|
234
|
-
# ShopifyCLI::Git.init(@ctx)
|
|
235
|
-
#
|
|
236
|
-
def init(ctx)
|
|
237
|
-
output, status = ctx.capture2e("git", "status")
|
|
238
|
-
|
|
239
|
-
unless status.success?
|
|
240
|
-
ctx.abort(ctx.message("core.git.error.repo_not_initiated"))
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
if output.include?("No commits yet")
|
|
244
|
-
ctx.abort(ctx.message("core.git.error.no_commits_made"))
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
|
|
248
|
-
def sparse_checkout(repo, set, branch, ctx)
|
|
249
|
-
_, status = ctx.capture2e("git init")
|
|
250
|
-
unless status.success?
|
|
251
|
-
ctx.abort(ctx.message("core.git.error.repo_not_initiated"))
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
_, status = ctx.capture2e("git remote add -f origin #{repo}")
|
|
255
|
-
unless status.success?
|
|
256
|
-
ctx.abort(ctx.message("core.git.error.remote_not_added"))
|
|
257
|
-
end
|
|
258
|
-
|
|
259
|
-
_, status = ctx.capture2e("git config core.sparsecheckout true")
|
|
260
|
-
unless status.success?
|
|
261
|
-
ctx.abort(ctx.message("core.git.error.sparse_checkout_not_enabled"))
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
_, status = ctx.capture2e("git sparse-checkout set #{set}")
|
|
265
|
-
unless status.success?
|
|
266
|
-
ctx.abort(ctx.message("core.git.error.sparse_checkout_not_set"))
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
resp, status = ctx.capture2e("git pull origin #{branch}")
|
|
270
|
-
unless status.success?
|
|
271
|
-
if resp.include?("fatal: couldn't find remote ref")
|
|
272
|
-
ctx.abort(ctx.message("core.git.error.pull_failed_bad_branch", branch))
|
|
273
|
-
end
|
|
274
|
-
ctx.abort(ctx.message("core.git.error.pull_failed"))
|
|
275
|
-
end
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
##
|
|
279
|
-
# handles showing the progress of the git clone command.
|
|
280
|
-
# if block given, assumes passing percent to block, otherwise
|
|
281
|
-
# increments bar for progress bar
|
|
282
|
-
#
|
|
283
|
-
# #### Parameters
|
|
284
|
-
#
|
|
285
|
-
# * `stderr` - Open3.popen3 output stream
|
|
286
|
-
# * `bar` - progress bar object to set percent
|
|
287
|
-
#
|
|
288
|
-
def clone_progress(stderr, bar: nil)
|
|
289
|
-
msg = []
|
|
290
|
-
|
|
291
|
-
while (line = stderr.gets)
|
|
292
|
-
msg << line.chomp
|
|
293
|
-
next unless line.strip.start_with?("Receiving objects:")
|
|
294
|
-
percent = (line.match(/Receiving objects:\s+(\d+)/)[1].to_f / 100).round(2)
|
|
295
|
-
|
|
296
|
-
if block_given?
|
|
297
|
-
yield percent
|
|
298
|
-
elsif !bar.nil?
|
|
299
|
-
bar.tick(set_percent: percent)
|
|
300
|
-
end
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
msg
|
|
304
|
-
end
|
|
305
|
-
|
|
306
|
-
private
|
|
307
|
-
|
|
308
|
-
def exec(*args, dir: Dir.pwd, default: nil, ctx: Context.new)
|
|
309
|
-
args = %w(git) + ["--git-dir", File.join(dir, ".git")] + args
|
|
310
|
-
out, _, stat = ctx.capture3(*args)
|
|
311
|
-
return default unless stat.success?
|
|
312
|
-
out.chomp
|
|
313
|
-
end
|
|
314
|
-
|
|
315
|
-
def rev_parse(*args, dir: nil, ctx: Context.new)
|
|
316
|
-
exec("rev-parse", *args, dir: dir, ctx: ctx)
|
|
317
|
-
end
|
|
318
|
-
end
|
|
319
|
-
end
|
|
320
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
module ShopifyCLI
|
|
2
|
-
module GitHub
|
|
3
|
-
module IssueURLGenerator
|
|
4
|
-
def self.error_url(error)
|
|
5
|
-
title = "[Bug]: #{error.class}: #{error.message}"
|
|
6
|
-
labels = "type:bug"
|
|
7
|
-
|
|
8
|
-
# take at most 5 lines from backtrace
|
|
9
|
-
stacktrace_text =
|
|
10
|
-
if error.backtrace # Sometimes errors seem to appear without backtrace, see https://github.com/Shopify/shopify-cli/issues/1972#issuecomment-1028013630
|
|
11
|
-
stacktrace = error.backtrace.length < 5 ? error.backtrace : error.backtrace[0..4]
|
|
12
|
-
stacktrace.join("\n").to_s
|
|
13
|
-
else
|
|
14
|
-
""
|
|
15
|
-
end
|
|
16
|
-
query = URI.encode_www_form({
|
|
17
|
-
title: title,
|
|
18
|
-
labels: labels,
|
|
19
|
-
template: "bug_report.yaml",
|
|
20
|
-
stack_trace: stacktrace_text,
|
|
21
|
-
os: RUBY_PLATFORM,
|
|
22
|
-
cli_version: ShopifyCLI::VERSION,
|
|
23
|
-
ruby_version: "#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}",
|
|
24
|
-
shell: ENV["SHELL"],
|
|
25
|
-
})
|
|
26
|
-
"#{ShopifyCLI::Constants::Links::NEW_ISSUE}?#{query}"
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2015 Usman Bashir
|
|
2
|
-
#
|
|
3
|
-
# MIT License
|
|
4
|
-
#
|
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
# a copy of this software and associated documentation files (the
|
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
# the following conditions:
|
|
12
|
-
#
|
|
13
|
-
# The above copyright notice and this permission notice shall be
|
|
14
|
-
# included in all copies or substantial portions of the Software.
|
|
15
|
-
#
|
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
-
|
|
24
|
-
require "securerandom"
|
|
25
|
-
|
|
26
|
-
module ShopifyCLI
|
|
27
|
-
module Helpers
|
|
28
|
-
module Haikunator
|
|
29
|
-
class << self
|
|
30
|
-
def title
|
|
31
|
-
build(0, " ")
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
def haikunate(token_range = 9999, delimiter = "-")
|
|
35
|
-
build(token_range, delimiter)
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
def name
|
|
39
|
-
first = nouns[random_seed % nouns.length]
|
|
40
|
-
last = adjectives[random_seed % adjectives.length]
|
|
41
|
-
[first, last]
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
private
|
|
45
|
-
|
|
46
|
-
def build(token_range, delimiter)
|
|
47
|
-
sections = [
|
|
48
|
-
adjectives[random_seed % adjectives.length],
|
|
49
|
-
nouns[random_seed % nouns.length],
|
|
50
|
-
token(token_range),
|
|
51
|
-
]
|
|
52
|
-
|
|
53
|
-
sections.compact.join(delimiter)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def random_seed
|
|
57
|
-
SecureRandom.random_number(4096)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def token(range)
|
|
61
|
-
SecureRandom.random_number(range) if range > 0
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
def adjectives
|
|
65
|
-
%w(
|
|
66
|
-
autumn hidden bitter misty silent empty dry dark summer
|
|
67
|
-
icy delicate quiet white cool spring winter patient
|
|
68
|
-
twilight dawn crimson wispy weathered blue billowing
|
|
69
|
-
broken cold damp falling frosty green long late lingering
|
|
70
|
-
bold little morning muddy old red rough still small
|
|
71
|
-
sparkling throbbing shy wandering withered wild black
|
|
72
|
-
young holy solitary fragrant aged snowy proud floral
|
|
73
|
-
restless divine polished ancient purple lively nameless
|
|
74
|
-
)
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
def nouns
|
|
78
|
-
%w(
|
|
79
|
-
waterfall river breeze moon rain wind sea morning
|
|
80
|
-
snow lake sunset pine shadow leaf dawn glitter forest
|
|
81
|
-
hill cloud meadow sun glade bird brook butterfly
|
|
82
|
-
bush dew dust field fire flower firefly feather grass
|
|
83
|
-
haze mountain night pond darkness snowflake silence
|
|
84
|
-
sound sky shape surf thunder violet water wildflower
|
|
85
|
-
wave water resonance sun wood dream cherry tree fog
|
|
86
|
-
frost voice paper frog smoke star
|
|
87
|
-
)
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
require "net/http"
|
|
2
|
-
require "openssl"
|
|
3
|
-
|
|
4
|
-
module ShopifyCLI
|
|
5
|
-
class HttpRequest
|
|
6
|
-
class << self
|
|
7
|
-
def post(uri, body, headers)
|
|
8
|
-
req = ::Net::HTTP::Post.new(uri.request_uri)
|
|
9
|
-
request(uri, body, headers, req)
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
def put(uri, body, headers)
|
|
13
|
-
req = ::Net::HTTP::Put.new(uri.request_uri)
|
|
14
|
-
request(uri, body, headers, req)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def get(uri, body, headers)
|
|
18
|
-
req = ::Net::HTTP::Get.new(uri.request_uri)
|
|
19
|
-
request(uri, body, headers, req)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def delete(uri, body, headers)
|
|
23
|
-
req = ::Net::HTTP::Delete.new(uri.request_uri)
|
|
24
|
-
request(uri, body, headers, req)
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def request(uri, body, headers, req)
|
|
28
|
-
cert_store = OpenSSL::X509::Store.new
|
|
29
|
-
cert_store.set_default_paths
|
|
30
|
-
|
|
31
|
-
http = ::Net::HTTP.new(uri.host, uri.port)
|
|
32
|
-
http.use_ssl = true
|
|
33
|
-
http.cert_store = cert_store
|
|
34
|
-
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if ENV["SSL_VERIFY_NONE"]
|
|
35
|
-
|
|
36
|
-
req.body = body unless body.nil?
|
|
37
|
-
req["Content-Type"] = "application/json"
|
|
38
|
-
headers.each { |header, value| req[header] = value }
|
|
39
|
-
http.request(req)
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module ShopifyCLI
|
|
2
|
-
class IdentityAuth
|
|
3
|
-
class EnvAuthToken
|
|
4
|
-
Token = Struct.new(:token, :expires_at, keyword_init: true)
|
|
5
|
-
|
|
6
|
-
class << self
|
|
7
|
-
attr_accessor :exchanged_partners_token
|
|
8
|
-
|
|
9
|
-
def partners_token_present?
|
|
10
|
-
Environment.auth_token
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def fetch_exchanged_partners_token
|
|
14
|
-
current_time = Time.now.to_i
|
|
15
|
-
|
|
16
|
-
# If we have an in-memory token that hasn't expired yet, we reuse it.
|
|
17
|
-
if exchanged_partners_token && current_time < exchanged_partners_token.expires_at.to_i
|
|
18
|
-
return exchanged_partners_token.token
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
new_exchanged_token = yield(Environment.auth_token)
|
|
22
|
-
token = new_exchanged_token["access_token"]
|
|
23
|
-
expires_in = new_exchanged_token["expires_in"].to_i
|
|
24
|
-
expires_at = Time.at(current_time + expires_in)
|
|
25
|
-
|
|
26
|
-
token = Token.new(token: token, expires_at: expires_at)
|
|
27
|
-
|
|
28
|
-
self.exchanged_partners_token = token
|
|
29
|
-
token.token
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|