Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
feat: 移除foreach命令
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 30, 2017
1 parent 0f2a569 commit 431fe66
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 90 deletions.
47 changes: 0 additions & 47 deletions app/command/foreach.ts

This file was deleted.

21 changes: 0 additions & 21 deletions app/gpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import runtimeHandler from './command/runtime';
import configHandler from './command/config';
import cleanHandler from './command/clean';
import findHandler from './command/find';
import foreachHandler from './command/foreach';
import pluginHandler from './command/plugin';
import removeHandler from './command/remove';

Expand Down Expand Up @@ -255,26 +254,6 @@ class Gpm extends EventEmitter {
return runtimeHandler(argv, options).catch(errorHandler);
});

program
.command('foreach', __('commands.foreach.desc'))
.alias('fe')
.argument('<plugin>', __('commands.foreach.argv.plugin.desc'))
.option(FLAGS.unixify.flag, FLAGS.unixify.desc)
.option(FLAGS.force.flag, FLAGS.force.desc)
.option(FLAGS.nolog.flag, FLAGS.nolog.desc)
.action(function(
argv: {
plugin: string;
},
options: {
unixify?: boolean;
force?: boolean;
nolog?: boolean;
}
) {
return foreachHandler(argv, options).catch(errorHandler);
});

program
.command('plugin', __('commands.plugin.desc'))
.alias('pl')
Expand Down
11 changes: 0 additions & 11 deletions locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,6 @@
"runtime": {
"desc": "Print the program runtime, useful for submit issue."
},
"foreach": {
"desc": "Run the plugin in each project. The current work directory is the current project.",
"argv": {
"plugin": {
"desc": "The plugin you want to run in the loop."
}
},
"log": {
"not_export_foreach_method": "Plugin don't export foreach method."
}
},
"plugin": {
"desc": "A series handler of plugin.",
"argv": {
Expand Down
11 changes: 0 additions & 11 deletions locales/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,6 @@
"runtime": {
"desc": "输出程序的运行环境,"
},
"foreach": {
"desc": "遍历所有项目并运行插件. 插件环境中,当前工作目录则为循环中的当前项目",
"argv": {
"plugin": {
"desc": "在循环中要运行的插件名称"
}
},
"log": {
"not_export_foreach_method": "插件没有输出foreach方法"
}
},
"plugin": {
"desc": "插件的一系列操作",
"argv": {
Expand Down

0 comments on commit 431fe66

Please sign in to comment.