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
```

View File

@ -17,7 +17,7 @@ cargo osdk new [OPTIONS] <name>
## Options
`--type kernel`:
`--kernel`:
Use the kernel template.
If this option is not set,
the library template will be used by default.
@ -27,7 +27,7 @@ the library template will be used by default.
- Create a new kernel named `myos`:
```bash
cargo osdk new --type kernel myos
cargo osdk new --kernel myos
```
- Create a new library named `mymodule`: