- handle fn arguments in
cmd
attribute parameter
#[shell(cmd = "python -m $MODULE")]
fn run(module: &str) -> Result<String, Box<Error>> {
""
}
- handle new return types:
()
(same as no return type)()
+ no_panic (same as no return type)Result<(), E>
Vec<T>
Vec<T>
+ no_panicVec<Result<T, E>>
Vec<Result<T, E>>
+ no_panicResult<Vec<T>, E>
Result<Vec<T>, E>
+ no_panicResult<Vec<Result<T, E1>>, E1>
Initial release:
#[shell]
attribute- cmd, no_panic attribute parameters
- set env variables from function arguments
- handle return types:
void
void
+ no_panicT
Result<T, E>
impl Iterator<Item=T>
impl Iterator<Item=T>
+ no_panicimpl Iterator<Item=Result<T, E>>
impl Iterator<Item=Result<T, E>>
+ no_panicResult<impl Iterator<Item=T>, E>
Result<impl Iterator<Item=T>, E>
+ no_panicResult<impl Iterator<Item=Result<T, E1>>, E1>