feat: rename some func name in lowlevel
This commit is contained in:
@@ -456,12 +456,18 @@ impl AppPathsKey {
|
||||
|
||||
const NAMEOF_PATH_TO_APPLICATION: &str = "";
|
||||
|
||||
pub fn get_path_to_application(&self, scope: Scope) -> Result<String, Error> {
|
||||
///
|
||||
///
|
||||
/// This field point to the fully qualified path to the application.
|
||||
pub fn get_default(&self, scope: Scope) -> Result<String, Error> {
|
||||
let key = self.open_scope_for_getter(scope)?;
|
||||
Ok(key.get_value(Self::NAMEOF_PATH_TO_APPLICATION)?)
|
||||
}
|
||||
|
||||
pub fn set_path_to_application(&mut self, scope: Scope, value: &str) -> Result<(), Error> {
|
||||
///
|
||||
///
|
||||
/// This field should be filled with fully qualified path to the application.
|
||||
pub fn set_default(&mut self, scope: Scope, value: &str) -> Result<(), Error> {
|
||||
let key = self.open_scope_for_setter(scope)?;
|
||||
key.set_value(Self::NAMEOF_PATH_TO_APPLICATION, &value)?;
|
||||
Ok(())
|
||||
@@ -469,12 +475,20 @@ impl AppPathsKey {
|
||||
|
||||
const NAMEOF_APPLICATION_DIRECTORY: &str = "Path";
|
||||
|
||||
pub fn get_application_directory(&self, scope: Scope) -> Result<String, Error> {
|
||||
///
|
||||
///
|
||||
/// This field point to the added path for PATH environment variable.
|
||||
/// Usually it is the path to application directory.
|
||||
pub fn get_path(&self, scope: Scope) -> Result<String, Error> {
|
||||
let key = self.open_scope_for_getter(scope)?;
|
||||
Ok(key.get_value(Self::NAMEOF_APPLICATION_DIRECTORY)?)
|
||||
}
|
||||
|
||||
pub fn set_application_directory(&mut self, scope: Scope, value: &str) -> Result<(), Error> {
|
||||
///
|
||||
///
|
||||
/// This field should be the added path for PATH environment variable.
|
||||
/// Usually it is the path to application directory.
|
||||
pub fn set_path(&mut self, scope: Scope, value: &str) -> Result<(), Error> {
|
||||
let key = self.open_scope_for_setter(scope)?;
|
||||
key.set_value(Self::NAMEOF_APPLICATION_DIRECTORY, &value)?;
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user