krankerl 0.10.1

A CLI helper to manage Nextcloud apps
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
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())
}