genco::lang::nix

Function argument

Source
pub fn argument<M>(name: M) -> Import
where M: Into<ItemStr>,
Expand description
use genco::prelude::*;

let cell = nix::argument("cell");

let toks = quote! {
    $cell
};

assert_eq!(
    vec![
        "{",
        "    cell,",
        "    ...",
        "}:",
        "",
        "cell",
    ],
    toks.to_file_vec()?
);