phab 0.4.1

CLI utility client for phabricator (https://www.phacility.com/phabricator)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fs;
use std::path::Path;

use crate::types::ResultAnyError;
use phab_lib::client::config::PhabricatorClientConfig;

pub fn parse_from_setting_path(
  setting_path: impl AsRef<Path>,
) -> ResultAnyError<PhabricatorClientConfig> {
  let file_content = fs::read_to_string(&setting_path)?;

  let configuration: PhabricatorClientConfig = deser_hjson::from_str(&file_content)?;

  return Ok(configuration);
}