Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Dec 4, 2023
1 parent fa3f986 commit 8fc0019
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ _✨ NoneBot2 更实用的初始项目新建工具 ✨_

</div>

## 📖 介绍

这里是插件的详细介绍部分

## 💿 安装

```shell
Expand All @@ -54,12 +50,27 @@ nb self install nb-cli-plugin-bootstrap
nb bootstrap
```

<details>
<summary>效果图(点击展开)</summary>

![效果图](https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/cli-bootstrap/bootstrap.png)

</details>

### 更新当前文件夹项目中的所有适配器和插件

```shell
nb update-project
```

<details>
<summary>效果图(点击展开)</summary>

![效果图](https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/cli-bootstrap/update-project1.png)
![效果图](https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/cli-bootstrap/update-project2.png)

</details>

## 📞 联系

QQ:3076823485
Expand All @@ -81,4 +92,6 @@ Telegram:[@lgc2333](https://t.me/lgc2333)

## 📝 更新日志

芝士刚刚发布的插件,还没有更新日志的说 qwq~
### 0.1.1

- 修复版本号显示不正确的 Bug
2 changes: 1 addition & 1 deletion nb_cli_plugin_bootstrap/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.1"
4 changes: 2 additions & 2 deletions nb_cli_plugin_bootstrap/handlers/update_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def __init__(self, name: str, stdout: str):

def _parse_version(self) -> Optional[str]:
suc_out = "Successfully installed "
if (suc_index := self.stdout.find(suc_out)) != -1:
index = self.stdout.find(self.name, suc_index) + len(self.name) + 1
if suc_out in self.stdout:
index = self.stdout.rfind(self.name) + len(self.name) + 1
return self.stdout[index : self.stdout.find(" ", index)].strip()
return None

Expand Down

0 comments on commit 8fc0019

Please sign in to comment.