MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / get_command_builder

Method get_command_builder

src/cli/mod.rs:145–147  ·  view source on GitHub ↗

Build a [`CommandBuilder`] that re-execs the current binary into this internal subcommand. Each variant owns its own arg layout.

(&self)

Source from the content-addressed store, hash-verified

143 /// Build a [`CommandBuilder`] that re-execs the current binary into this
144 /// internal subcommand. Each variant owns its own arg layout.
145 pub fn get_command_builder(&self) -> Result<CommandBuilder> {
146 Ok(self.command_builder_for(self_exe()?))
147 }
148
149 /// Same as [`Self::get_command_builder`], re-executing `program` instead.
150 pub fn command_builder_for(&self, program: PathBuf) -> CommandBuilder {

Callers 2

get_shell_commandMethod · 0.80
wrap_commandMethod · 0.80

Calls 2

self_exeFunction · 0.85
command_builder_forMethod · 0.80

Tested by

no test coverage detected