cargo-lambda icon indicating copy to clipboard operation
cargo-lambda copied to clipboard

Make `cargo lambda new` work in an existent project

Open calavera opened this issue 3 years ago • 2 comments
trafficstars

That subcommand is great to quickly scaffold new functions, however, it only works for new projects.

It'd be very nice if it also worked on existent projects, where it'd add the function code to an existent package.

calavera avatar Apr 10 '22 23:04 calavera

Cargo use a separate cargo init command for this: https://doc.rust-lang.org/cargo/commands/cargo-init.html , I think cargo-lambda should follow this common pattern.

messense avatar Apr 11 '22 15:04 messense

I think cargo-lambda should follow this common pattern.

I'm all for this. I forgot that cargo-init was a thing.

calavera avatar Apr 11 '22 15:04 calavera