MCPcopy Create free account
hub / github.com/bootc-dev/bootc / run_get_string

Method run_get_string

crates/utils/src/chroot.rs:178–183  ·  view source on GitHub ↗

Run the specified command inside the chroot and capture stdout as a string. `args` must include the program as its first element.

(
        self,
        args: impl IntoIterator<Item = S>,
    )

Source from the content-addressed store, hash-verified

176 /// as a string. `args` must include the program as its first
177 /// element.
178 pub fn run_get_string<S: AsRef<OsStr>>(
179 self,
180 args: impl IntoIterator<Item = S>,
181 ) -> Result<String> {
182 self.build_command(args)?.log_debug().run_get_string()
183 }
184}
185
186#[cfg(test)]

Callers 6

bootctl_systemd_versionFunction · 0.45
get_all_users_keysFunction · 0.45
list_dev_for_zfs_datasetFunction · 0.45
newMethod · 0.45

Calls 2

log_debugMethod · 0.80
build_commandMethod · 0.80

Tested by

no test coverage detected