Multiple ways to specify OSDK new's type

This commit is contained in:
Zhang Junyang
2024-03-25 23:01:12 +08:00
committed by Tate, Hongliang Tian
parent dcab4e1039
commit 3dce753c86
12 changed files with 58 additions and 20 deletions

View File

@ -13,7 +13,7 @@ Creating a new kernel project is simple.
You only need to execute the following command:
```bash
cargo osdk new --type kernel myos
cargo osdk new --kernel myos
```
## Creating a new library project

View File

@ -8,7 +8,7 @@ Suppose you have created a new kernel project named `myos`
and you are in the project directory:
```bash
cargo osdk new --type kernel myos && cd myos
cargo osdk new --kernel myos && cd myos
```
## Build the project

View File

@ -24,7 +24,7 @@ Then, add the following content to `Cargo.toml`:
The two projects can be created using the following commands:
```bash
cargo osdk new --type kernel myos
cargo osdk new --kernel myos
cargo osdk new mymodule
```