Liking cljdoc? Tell your friends :D

hive-compose.promote.config

Addon config -> Settings. Pure: the profiles file's contents and the home directory arrive as values.

Config keys (manifest :addon/config, then config.edn :addons {"hive.compose" {..}}): :compose/profiles [Profile ..] or {id Profile}, inline :compose/profiles-file EDN file of the same shape (default ~/.config/hive-mcp/compose-profiles.edn) :compose/projects {id Project}: compose projects whose services and native profiles are addressable as targets (<project>/<target>) :compose/default-ttl-minutes idle minutes before the reaper acts (default 60) :compose/default-idle-action :stop | :down | :none (default :stop) :compose/tick-seconds reaper period (default 60) :compose/state-file default ~/.local/state/hive-compose/state.edn :compose/timeout-ms per compose call (default 60000) :compose/up-timeout-ms per up, pulls included (default 600000) :compose/adopt? adopt running stacks of configured profiles (default true)

Addon config -> Settings. Pure: the profiles file's contents and the home
directory arrive as values.

Config keys (manifest `:addon/config`, then config.edn `:addons {"hive.compose" {..}}`):
  :compose/profiles             [Profile ..] or {id Profile}, inline
  :compose/profiles-file        EDN file of the same shape
                                (default ~/.config/hive-mcp/compose-profiles.edn)
  :compose/projects             {id Project}: compose projects whose services
                                and native profiles are addressable as targets
                                (`<project>/<target>`)
  :compose/default-ttl-minutes  idle minutes before the reaper acts (default 60)
  :compose/default-idle-action  :stop | :down | :none (default :stop)
  :compose/tick-seconds         reaper period (default 60)
  :compose/state-file           default ~/.local/state/hive-compose/state.edn
  :compose/timeout-ms           per compose call (default 60000)
  :compose/up-timeout-ms        per `up`, pulls included (default 600000)
  :compose/adopt?               adopt running stacks of configured profiles (default true)
raw docstring

default-log-dirclj

source

default-profiles-fileclj

source

default-state-fileclj

source

defaultsclj

source

expand-homeclj

(expand-home home s)

s with a leading ~ replaced by home.

`s` with a leading ~ replaced by `home`.
sourceraw docstring

normalize-profileclj

(normalize-profile home p)

Profile with a string id, its dir expanded against home and its programs resolved against that dir.

Profile with a string id, its dir expanded against `home` and its programs
resolved against that dir.
sourceraw docstring

normalize-programsclj

(normalize-programs home base programs)

Programs with string ids and their dirs made absolute against base, the directory of the project or profile that declares them.

Programs with string ids and their dirs made absolute against `base`, the
directory of the project or profile that declares them.
sourceraw docstring

normalize-projectclj

(normalize-project home p)

Project with a string id, its dir expanded against home and its programs resolved against that dir.

Project with a string id, its dir expanded against `home` and its programs
resolved against that dir.
sourceraw docstring

profiles-fileclj

(profiles-file cfg home)

Path of the profiles file cfg names, expanded against home.

Path of the profiles file `cfg` names, expanded against `home`.
sourceraw docstring

settingsclj

(settings cfg file-profiles home)

Result<Settings> from merged addon config cfg, the profiles read from the profiles file (file-profiles, nil when absent) and home. Inline profiles override file profiles with the same id.

Result<Settings> from merged addon config `cfg`, the profiles read from the
profiles file (`file-profiles`, nil when absent) and `home`. Inline profiles
override file profiles with the same id.
sourceraw docstring

underclj

(under home base dir)

dir as an absolute path: itself when absolute or under ~, else resolved against base.

`dir` as an absolute path: itself when absolute or under ~, else resolved
against `base`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close