Overhaul OSDK

This commit is contained in:
Zhang Junyang
2024-03-22 13:50:45 +08:00
committed by Tate, Hongliang Tian
parent 735d7b7b11
commit 33c53dcf2b
40 changed files with 995 additions and 1208 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 --kernel myos
cargo osdk new --type 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 --kernel myos && cd myos
cargo osdk new --type 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 --kernel myos
cargo osdk new --type kernel myos
cargo osdk new mymodule
```

View File

@ -17,7 +17,7 @@ cargo osdk new [OPTIONS] <name>
## Options
`--kernel`:
`--type 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 --kernel myos
cargo osdk new --type kernel myos
```
- Create a new library named `mymodule`: