pub struct ConfigSpec {
pub shell: Option<ConfigShell>,
pub link: BTreeMap<String, ConfigLinkSource>,
pub apply: Vec<Vec<String>>,
pub deps: BTreeMap<String, String>,
}Expand description
Host configuration declared on a command node (jan config emit / link / apply / deps).
config:
shell:
path: config/zsh.zsh
# or inline: shell: |
# setopt AUTO_CD
link:
~/.emacs.d/init.el: | # inline file body (written by `jan config link`)
(message "hi")
~/.other:
path: config/other # or bare relative path string
apply:
- [git, config, --global, alias.co, checkout]
deps:
ag: the_silver_searcher
fzf: ""Fields§
§shell: Option<ConfigShell>Shell fragment to concatenate into jan config emit output.
link: BTreeMap<String, ConfigLinkSource>Dest (tilde-expanded under $HOME) → path under preferred dir, or inline body.
apply: Vec<Vec<String>>Imperative argv lists run by jan config apply.
deps: BTreeMap<String, String>Host tools checked by jan config deps (binary name → optional package/hint).
Implementations§
Trait Implementations§
Source§impl Clone for ConfigSpec
impl Clone for ConfigSpec
Source§fn clone(&self) -> ConfigSpec
fn clone(&self) -> ConfigSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigSpec
impl Debug for ConfigSpec
Source§impl Default for ConfigSpec
impl Default for ConfigSpec
Source§fn default() -> ConfigSpec
fn default() -> ConfigSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigSpec
impl<'de> Deserialize<'de> for ConfigSpec
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConfigSpec
Source§impl PartialEq for ConfigSpec
impl PartialEq for ConfigSpec
impl StructuralPartialEq for ConfigSpec
Auto Trait Implementations§
impl Freeze for ConfigSpec
impl RefUnwindSafe for ConfigSpec
impl Send for ConfigSpec
impl Sync for ConfigSpec
impl Unpin for ConfigSpec
impl UnsafeUnpin for ConfigSpec
impl UnwindSafe for ConfigSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.