Skip to content

Commit

Permalink
config: remove set maven repo from command line
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Jul 30, 2021
1 parent ffd904e commit 9d1c21e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

欢迎阅读自带脚本的[说明](scripts/README.md),它将教会你如何`安装插件``禁用和启用脚本``修改包的更新频道`等基本操作。

开发者请参见 [MCL 开发文档](docs/README.md)

## 简介

`iTX Technologies Mirai Console Loader`(下简称`MCL`)采用模块化设计,包含以下几个基础模块:
Expand All @@ -25,8 +27,6 @@
1.[Releases](https://github.com/iTXTech/mirai-console-loader/releases) 下载最新版本的`MCL`
1. 解压到某处
1. 在命令行中执行`.\mcl`以启动`MCL`
* `Windows`: `cmd` 必须执行`.\mcl``powershell`接受`.\mcl``./mcl`
* `*nix`: `./mcl`

## `Mirai Repo` 列表

Expand Down
6 changes: 3 additions & 3 deletions docs/.conf/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module.exports = {
text: 'mirai-console-loader',
link: '/',
items: [
{ text: 'Index', link: '/' },
{ text: 'Script', link: '/Script.html' },
{ text: 'Plugin', link: '/Plugin.html' },
{text: '主页', link: '/'},
{text: 'MCL脚本', link: '/Script.html'},
{text: 'MCL插件', link: '/Plugin.html'},
],
};
12 changes: 6 additions & 6 deletions scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ loader.options.addOption(Option.builder("o").desc("Show Mirai Repo and Maven Rep
.longOpt("show-repos").build());
loader.options.addOption(Option.builder("m").desc("Set Mirai Repo address")
.longOpt("set-mirai-repo").hasArg().argName("Address").build());
loader.options.addOption(Option.builder("v").desc("Set Maven Repo address")
.longOpt("set-maven-repo").hasArg().argName("Address").build());
// loader.options.addOption(Option.builder("v").desc("Set Maven Repo address")
// .longOpt("set-maven-repo").hasArg().argName("Address").build());
loader.options.addOption(Option.builder("c").desc("Set log level")
.longOpt("log-level").hasArg().argName("level").build());
let group = new OptionGroup();
Expand Down Expand Up @@ -76,10 +76,10 @@ phase.cli = () => {
loader.config.miraiRepo = loader.cli.getOptionValue("m");
loader.saveConfig();
}
if (loader.cli.hasOption("v")) {
loader.config.mavenRepo = loader.cli.getOptionValue("v");
loader.saveConfig();
}
// if (loader.cli.hasOption("v")) {
// loader.config.mavenRepo = loader.cli.getOptionValue("v");
// loader.saveConfig();
// }
if (loader.cli.hasOption("c")) {
let lvl = Integer.parseInt(loader.cli.getOptionValue("c"));
loader.logger.setLogLevel(lvl);
Expand Down

0 comments on commit 9d1c21e

Please sign in to comment.