Simple tool for OIer to save C++ source file into repo and replace current file with template source file.
npm install oirepooirepo save xxx或直接orp s xxx,将当前源文件复制进repo(源文件仓库)的xxx.cpp
oirepo clear或直接orp c,清空当前源文件,并替换成默认模板文件。也可以在后面加上模板文件名来指定其它模板
oirepo push xxx或直接orp p xxx,将当前源文件复制进repo(源文件仓库)并用模板替换当前源文件
oirepo run或者orp r将使用预先配置好的命令编译并运行代码;也可以选择先将所有输入存进文件或流(用Ctrl+Z结束),再一次性传给待运行程序来模拟文件输入输出,计时并运行,输出结果和用时。
npm install oirepo -g直接将oirepo全局安装至本地,npm会自动下载所有依赖包
git clone https://github.com/CuberQAQ/oirepo.git(先确保安装了git)
npm i -g,将oirepo全局安装至本地,npm会自动下载所有依赖包
oirepo help和oirepo help <子命令>来获取帮助...