pub struct Where { /* private fields */ }Expand description
p4 [g-opts] where [file ...]
Show how the specified files are mapped by the client view.
p4 where uses the client view and root to print files locations relative to
the top of the depot, relative to the top of the client workspace, and
relative to the top of the local OS directory tree. The client mappings are
set by the p4 client command. The p4 where command does not check to see
whether the file exists. Instead, it reports where the file would be
located if it did exist.
The command accepts wildcards, such as p4 where *.html
For each file provided as a parameter, a set of mappings is output. Each set of mappings consists of:
- the filename in depot syntax. such as
//depot/project1/my-file.html - the filename in client syntax, such as
//maria/depot/project1/my-file.html - the filename in local syntax, which is the local operating system path,
such as
C:\Users\maria\project1\my-file.html
Implementations§
Source§impl Where
impl Where
Sourcepub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
pub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
Creates a new p4 where command.
bin is the path to the Perforce command-line executable.
Sourcepub fn get_global_opts(&self) -> &GlobalOpts
pub fn get_global_opts(&self) -> &GlobalOpts
Sourcepub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
pub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
Sourcepub fn global_opts(self, v: GlobalOpts) -> Self
pub fn global_opts(self, v: GlobalOpts) -> Self
Trait Implementations§
Source§impl<S, I> ParameterizedSpawn<(S,)> for Where
impl<S, I> ParameterizedSpawn<(S,)> for Where
Source§fn spawn_with(&mut self, (files): (S,)) -> Result<Self::Output, Self::Error>
fn spawn_with(&mut self, (files): (S,)) -> Result<Self::Output, Self::Error>
Spawns p4 where for the given files as a child process with piped
standard output and error streams; use the returned Child handle
to wait for it or interact with it.
For each file provided as a parameter, a set of mappings is output.