Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/smx/src/modules/config/config-handler.ts>ConfigHandler

Manage and sync scripts, configs and templates between computers
Latest
class ConfigHandler
implements IConfigHandler
import { ConfigHandler } from "https://deno.land/x/smx@v0.6.0/src/modules/config/config-handler.ts";

Constructors

new
ConfigHandler(factory: IFileHandlerFactory)

Properties

readonly
globalFile: ConfigFile<GlobalConfig> | undefined
readonly
localFile: ConfigFile<LocalConfig> | undefined
readonly
targetId: string | undefined

Methods

loadGlobalConfig(path: [string, "file" | "folder"], localPath?: string): Promise<void>
loadLocalConfig(path: string): Promise<void>
setTargetId(targetId: string): void