Add rtcl::rupdate (#525)

* Add rtcl::rupdate

Signed-off-by: Hsiao-nan Cheung <niheaven@gmail.com>

* Using `rtcl` as seperator

Signed-off-by: Hsiao-nan Cheung <niheaven@gmail.com>
This commit is contained in:
Hsiao-nan Cheung
2020-09-25 01:00:06 +08:00
committed by GitHub
parent 821168a3d5
commit 06369e6e4a
3 changed files with 10 additions and 0 deletions

View File

@@ -121,6 +121,14 @@ pub fn run_jetpack(run_type: RunType) -> Result<()> {
run_type.execute(&jetpack).args(&["global", "update"]).check_run()
}
pub fn run_rtcl(ctx: &ExecutionContext) -> Result<()> {
let rupdate = utils::require("rupdate")?;
print_separator("rtcl");
ctx.run_type().execute(&rupdate).check_run()
}
pub fn run_opam_update(run_type: RunType) -> Result<()> {
let opam = utils::require("opam")?;