Class: ShopifyCLI::Commands::App

Inherits:
ShopifyCLI::Command show all
Defined in:
lib/shopify_cli/commands/app.rb,
lib/shopify_cli/commands/app/open.rb,
lib/shopify_cli/commands/app/serve.rb,
lib/shopify_cli/commands/app/create.rb,
lib/shopify_cli/commands/app/deploy.rb,
lib/shopify_cli/commands/app/tunnel.rb,
lib/shopify_cli/commands/app/connect.rb,
lib/shopify_cli/commands/app/create/php.rb,
lib/shopify_cli/commands/app/create/node.rb,
lib/shopify_cli/commands/app/create/rails.rb

Defined Under Namespace

Classes: Connect, Create, Deploy, Open, Serve, Tunnel

Instance Attribute Summary

Attributes inherited from ShopifyCLI::Command

#ctx, #options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ShopifyCLI::Command

call, check_node_version, check_ruby_version, check_version, #initialize, options, prerequisite_task, recommend_default_node_range, recommend_default_ruby_range, recommend_node, recommend_ruby, run_prerequisites, subcommand, subcommand_registry

Methods included from Feature::Set

#hidden?, #hidden_feature

Constructor Details

This class inherits a constructor from ShopifyCLI::Command

Class Method Details

.call_helpObject



22
23
24
# File 'lib/shopify_cli/commands/app.rb', line 22

def call_help(*)
  @ctx.puts(help)
end

.helpObject



17
18
19
20
# File 'lib/shopify_cli/commands/app.rb', line 17

def help
  subcommands = subcommand_registry.command_names.join(" | ")
  ShopifyCLI::Context.message("core.app.help", ShopifyCLI::TOOL_NAME, subcommands)
end

Instance Method Details

#callObject



12
13
14
# File 'lib/shopify_cli/commands/app.rb', line 12

def call(*)
  @ctx.puts(self.class.help)
end