pub struct AddArgs {
pub target: Option<String>,
pub playground: bool,
pub install: bool,
}Expand description
Add a flodl ecosystem crate to the current flodl project.
Currently supports flodl-hf (alias: hf). Two modes (combinable):
--playground: drops a standalone cargo crate under./flodl-hf/with pinned deps and a one-file AutoModel example, plus aflodl-hf:entry in the rootfdl.ymlsofdl flodl-hf <cmd>routes into it. Try-it-out path; doesn’t touchCargo.toml.--install: appendsflodl-hf = "=X.Y.Z"(default features) to the rootCargo.toml[dependencies]. Wires the crate into the user’s own code; doesn’t create a subdir.
With neither flag, an interactive prompt asks. Non-tty stdin errors loudly rather than silently picking a default.
Fields§
§target: Option<String>Target to scaffold (currently: flodl-hf or the alias hf).
playground: boolDrop a sandbox playground under ./flodl-hf/.
install: boolAdd as a dependency in the root Cargo.toml.
Trait Implementations§
Source§impl FdlArgsTrait for AddArgs
impl FdlArgsTrait for AddArgs
Source§fn try_parse_from(args: &[String]) -> Result<Self, String>
fn try_parse_from(args: &[String]) -> Result<Self, String>
Parse from an explicit argv slice. First element is the program
name (ignored), following elements are flags/values/positionals.
Source§fn render_help() -> String
fn render_help() -> String
Render
--help to a string.Auto Trait Implementations§
impl Freeze for AddArgs
impl RefUnwindSafe for AddArgs
impl Send for AddArgs
impl Sync for AddArgs
impl Unpin for AddArgs
impl UnsafeUnpin for AddArgs
impl UnwindSafe for AddArgs
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