fruitcake/magerun-modman

语言: PHP

git: https://github.com/fruitcake/magerun-modman

Magerun Modman命令
Magerun Modman command
README.md (中文)

Magerun Modman司令部

Software License
Build Status

安装

  1. 创建〜/ .n98-magerun / modules /(如果它还不存在)。
mkdir -p ~/.n98-magerun/modules/
  1. 在您的modules文件夹中克隆此repo。
cd ~/.n98-magerun/modules/
git clone https://github.com/fruitcakestudio/magerun-modman.git
  1. 它应该安装。检查modman:generate是否显示出来。

请在此处查看其他选项:http://magerun.net/introducting-the-new-n98-magerun-module-system/

生成命令

使用此文件根据当前目录生成modman文件。

$ magerun modman:generate [-d|--dir[="..."]] [-r|--raw]

例子:

$ magerun modman:generate              # Will show modman script for current directory
$ magerun modman:generate > modman     # Will write output to 'modman' file in current directory
$ magerun modman:generate --dir="src"  # Will scan the 'src' dir, as module root
$ magerun modman:generate --raw        # Doesn't combine/rewrite the paths, but lists all files

注意:如果路径未正确重写,则可以尝试使用--raw标志。这将为每个唯一文件创建一行。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

Magerun Modman Command

Software License
Build Status

Installation

  1. Create ~/.n98-magerun/modules/ (if it doesn't exist yet).
mkdir -p ~/.n98-magerun/modules/
  1. Clone this repo in your modules folder.
cd ~/.n98-magerun/modules/
git clone https://github.com/fruitcakestudio/magerun-modman.git
  1. It should be installed. Check if the modman:generate shows up.

See other options here: http://magerun.net/introducting-the-new-n98-magerun-module-system/

Generate command

Use this file to generate a modman file, based on the current directory.

$ magerun modman:generate [-d|--dir[="..."]] [-r|--raw]

Examples:

$ magerun modman:generate              # Will show modman script for current directory
$ magerun modman:generate > modman     # Will write output to 'modman' file in current directory
$ magerun modman:generate --dir="src"  # Will scan the 'src' dir, as module root
$ magerun modman:generate --raw        # Doesn't combine/rewrite the paths, but lists all files

Note: If the paths aren't correctly rewritten, you can try the --raw flag. This will create a line for each unique file.