瀏覽代碼

update readme

ruki 4 年之前
父節點
當前提交
19283afd25
共有 2 個文件被更改,包括 46 次插入0 次删除
  1. 22 0
      README.md
  2. 24 0
      zh-cn/README.md

+ 22 - 0
README.md

@@ -199,6 +199,21 @@ $ xrepo env -b "luajit 2.x" luajit
 $ xrepo env -p iphoneos -b "zlib,libpng,luajit 2.x" cmake ..
 ```
 
+### Enter the package shell environment
+
+We can customize some package configurations by adding the xmake.lua file in the current directory, and then enter the specific package shell environment.
+
+```lua
+add_requires("zlib 1.2.11")
+add_requires("python 3.x", "luajit")
+```
+
+```console
+$ xrepo env shell
+> python --version
+> luajit --version
+```
+
 ### Show the given package information
 
 ```console
@@ -242,4 +257,11 @@ The package info of project:
             -> values: {"MT","MD"}
 ```
 
+### Uninstall all packages
 
+We can use the following command to batch uninstall and delete the installed packages, supporting pattern matching:
+
+```bash
+$ xrepo remove --all
+$ xrepo remove --all zlib pcr*
+```

+ 24 - 0
zh-cn/README.md

@@ -200,6 +200,21 @@ $ xrepo env -b "luajit 2.x" luajit
 $ xrepo env -p iphoneos -b "zlib,libpng,luajit 2.x" cmake ..
 ```
 
+### 进入包 shell 环境
+
+我们可以通过在当前目录下,添加 xmake.lua 文件,定制化一些包配置,然后进入特定的包 shell 环境。
+
+```lua
+add_requires("zlib 1.2.11")
+add_requires("python 3.x", "luajit")
+```
+
+```console
+$ xrepo env shell
+> python --version
+> luajit --version
+```
+
 ### 查看包信息
 
 ```console
@@ -243,3 +258,12 @@ The package info of project:
             -> values: {"MT","MD"}
 ```
 
+### 卸载所有的包
+
+我们可以通过下面的命令,批量卸载删除已经安装的包,支持模式匹配:
+
+```bash
+$ xrepo remove --all
+$ xrepo remove --all zlib pcr*
+```
+