命令
OSDK provides similar subcommands as Cargo, and these subcommands have similar meanings as corresponding Cargo subcommands.
Currently, OSDK supports the following subcommands:
- new:建立新的內核包或程式庫包
- build:編譯專案及其依賴項目
- run: Run the kernel with a VMM
- test: Execute kernel mode unit test by starting a VMM
- debug: Debug a remote target via GDB
- profile: Profile a remote GDB debug target to collect stack traces
- check: Analyze the current package and report errors
- clippy: Check the current package and catch common mistakes
The new, build, run, test and debug subcommands can accept additional options, while the check and clippy subcommands can only accept arguments that are compatible with the corresponding Cargo subcommands.