Sha256: d4f43d2c0e8c189742300bfa15056247a4ca1ddb0ba15a6cb18801a8fbd015b0
Contents?: true
Size: 954 Bytes
Versions: 13
Compression:
Stored size: 954 Bytes
Contents
require 'shopify_cli' module ShopifyCli module Commands Registry = CLI::Kit::CommandRegistry.new( default: 'help', contextual_resolver: nil, ) @core_commands = [] def self.register(const, cmd, path = nil, is_core = false) autoload(const, path) if path Registry.add(->() { const_get(const) }, cmd) @core_commands.push(cmd) if is_core end def self.core_command?(cmd) @core_commands.include?(cmd) end register :Config, 'config', 'shopify-cli/commands/config', true register :Connect, 'connect', 'shopify-cli/commands/connect', true register :Create, 'create', 'shopify-cli/commands/create', true register :Help, 'help', 'shopify-cli/commands/help', true register :Logout, 'logout', 'shopify-cli/commands/logout', true register :System, 'system', 'shopify-cli/commands/system', true register :Version, 'version', 'shopify-cli/commands/version', true end end
Version data entries
13 entries across 13 versions & 1 rubygems