Skip to content

Commit

Permalink
Merge branch '2-magento-command' into 'master'
Browse files Browse the repository at this point in the history
2 Add Readme change

Closes #2

See merge request asannikov/mgt!30
  • Loading branch information
asannikov committed Jan 14, 2021
2 parents 0c97208 + b755f29 commit 75313ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ implemented commands:
xdebug:cli:enable, xce Enable cli xdebug
xdebug:cli:disable, xcd Disable cli xdebug
shell Change shell type for a project
magento, m Call magento command bin/magento or magerun. This command has subcommands. Call jumper magento for more details.
```

# Project config example - jumper.json
Expand Down
3 changes: 3 additions & 0 deletions app/command/magento.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ func CallMagentoCommand(initf func(bool) string, cfg magentoGlobalConfig, d mage
return &cli.Command{
Name: "magento",
Aliases: []string{"m"},
Usage: "Call magento command bin/magento or magerun. This command has subcommands. Call jumper magento for more details.",
Subcommands: []*cli.Command{
{
Name: "bin/magento",
Aliases: []string{"bm"},
Usage: "It looks for bin/magento command and call it",
Action: func(c *cli.Context) error {
initf(true)

Expand Down Expand Up @@ -100,6 +102,7 @@ func CallMagentoCommand(initf func(bool) string, cfg magentoGlobalConfig, d mage
{
Name: "magerun",
Aliases: []string{"mr"},
Usage: "It looks for magerun2 command and call it",
Action: func(c *cli.Context) error {
initf(true)

Expand Down

0 comments on commit 75313ce

Please sign in to comment.