use failure::Error;
use nextcloud_appinfo::get_appinfo;
use occ::Occ;
use std::path::Path;
pub fn disable_app() -> Result<(), Error> {
let app_path = Path::new(".").canonicalize()?;
let info = get_appinfo(&app_path)?;
let occ = Occ::new("../../occ");
occ.disable_app(info.id())
}