@@ 65-76 (lines=12) @@ | ||
62 | /** |
|
63 | * Configures the command |
|
64 | */ |
|
65 | protected function configure() |
|
66 | { |
|
67 | $this->setName('create-module') |
|
68 | ->setDescription('Sets up a new SilverStripe module skeleton at a' |
|
69 | . ' path you specify (defaults to using getcwd())') |
|
70 | ->addArgument(self::ARGUMENTS_MODULE_NAME, InputArgument::REQUIRED) |
|
71 | ->addArgument(self::ARGUMENTS_MODULE_NAMESPACE, InputArgument::REQUIRED) |
|
72 | ->addOption(self::OPTIONS_NON_VENDOR, null, InputOption::VALUE_NONE) |
|
73 | ->addOption(self::OPTIONS_SS3, null, InputOption::VALUE_NONE) |
|
74 | ->addOption(self::OPTIONS_TRAVIS_CI, null, InputOption::VALUE_NONE) |
|
75 | ->addOption(self::OPTIONS_CIRCLE_CI, null, InputOption::VALUE_NONE); |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * Executes this command |
@@ 66-78 (lines=13) @@ | ||
63 | /** |
|
64 | * Configures the command |
|
65 | */ |
|
66 | protected function configure() |
|
67 | { |
|
68 | $this->setName('create-dataobject') |
|
69 | ->setDescription('Sets up a new SilverStripe dataobject skeleton at the' |
|
70 | . ' given path.') |
|
71 | ->addArgument(self::ARGUMENTS_NAME, InputArgument::REQUIRED) |
|
72 | ->addArgument(self::ARGUMENTS_PATH, InputArgument::REQUIRED) |
|
73 | ->addArgument(self::ARGUMENTS_NAMESPACE, InputArgument::REQUIRED) |
|
74 | ->addOption(self::OPTIONS_HAS_ONE, null, InputOption::VALUE_NONE) |
|
75 | ->addOption(self::OPTIONS_HAS_MANY, null, InputOption::VALUE_NONE) |
|
76 | ->addOption(self::OPTIONS_MANY_MANY, null, InputOption::VALUE_NONE) |
|
77 | ->addOption(self::OPTIONS_TRADITIONAL_ARRAY, null, InputOption::VALUE_NONE); |
|
78 | } |
|
79 | ||
80 | /** |
|
81 | * Executes this command |