(): GitopsConfig returns
GitopsConfig Configuration types and normalization for gitops multi-repo management.
Two-phase configuration system: - RawGitopsConfig - User-friendly format with optional fields and flexible types - GitopsConfig - Internal format with required fields and strict types
This allows users to provide minimal configs (e.g., just URLs as strings) while the system works with normalized configs internally for type safety.
10 declarations
(): GitopsConfig GitopsConfig CreateGitopsConfig GitopsConfig reposArray<GitopsRepoConfig>repos_dirstringGitopsConfigModule defaultRawGitopsConfig | CreateGitopsConfigGitopsRepoConfig repo_urlThe HTTPS URL to the repo. Does not include a .git suffix.
Urlrepo_dirRelative or absolute path to the repo's local directory.
If null, the directory is inferred from the URL and cwd.
string | nullbranchThe branch name to use when fetching the repo. Defaults to main.
GitBranch(config_path: string): Promise<GitopsConfig | null> config_pathstringPromise<GitopsConfig | null> (raw_config: RawGitopsConfig): GitopsConfig Transforms a RawGitopsConfig to the more strict GitopsConfig. This allows users to provide a more relaxed config.
raw_configGitopsConfig RawGitopsConfig reposArray<Url | RawGitopsRepoConfig>repos_dirstringRawGitopsRepoConfig repo_urlUrlrepo_dirstring | nullbranchGitBranch(config_module: any, config_path: string): asserts config_module is GitopsConfigModule config_moduleanyconfig_pathstringvoid