os
The system operation module belongs to the built-in module. It can be called directly by the script scope without using import.
This module is also a native module of lua, and xmake has been extended to provide more practical interfaces.
edit⚠ Only some readonly interfaces (for example:
os.getenv
,os.arch
) in the os module can be used in the description scope. Other interfaces can only be used in the script domain, for example:os.cp
,os.rm
etc.