Struct pavex_cli_client::commands::new::NewBuilder
source · pub struct NewBuilder { /* private fields */ }
Expand description
The configuration for pavex
’s new
command.
You can use Client::new
to start building the command configuration.
Implementations§
source§impl NewBuilder
impl NewBuilder
sourcepub fn template(self, template: TemplateName) -> Self
pub fn template(self, template: TemplateName) -> Self
Set the template to use when creating a new Pavex project.
sourcepub fn execute(self) -> Result<(), NewError>
pub fn execute(self) -> Result<(), NewError>
Scaffold a new Pavex project.
This will invoke pavex
with the chosen configuration.
It won’t return until pavex
has finished running.
If pavex
exits with a non-zero status code, this will return an error.
sourcepub fn command(self) -> Command
pub fn command(self) -> Command
Assemble the std::process::Command
that will be used to invoke pavex
,
but do not run it.
This method can be useful if you need to customize the command before running it.
If that’s not your usecase, consider using NewBuilder::execute
instead.
Auto Trait Implementations§
impl Freeze for NewBuilder
impl !RefUnwindSafe for NewBuilder
impl Send for NewBuilder
impl Sync for NewBuilder
impl Unpin for NewBuilder
impl !UnwindSafe for NewBuilder
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