require 'sct/command_interface' require 'sct/command_option' module Sct class YarnCommand IS_PUBLIC_COMMAND = true SYNTAX = 'sct yarn' SUMMARY = 'Run yarn commands through SCT' EXAMPLE = 'sct yarn dev' EXAMPLE_DESCRIPTION = 'sct yarn dev will start the dev installation of the current project' DESCRIPTION = "sct will run yarn commands through the local docker installation" OPTIONS = [ CommandOption.new("--port PORTNUMBER", Integer, "The portnumber on which the server will be deployed") ] def execute(args, options) require "sct/docker/yarn" Sct::Yarn.exec(ARGV[1..(ARGV.length+1)]) end implements CommandInterface end end