serverless / components

The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
https://www.serverless.com
Apache License 2.0
2.31k stars 181 forks source link

Detect invoking dir for templates #998

Closed timqian closed 2 years ago

timqian commented 2 years ago

When users execute sls invoke or sls invoke local in a template folder, try to detect scf/multi-scf instance directory.

Related ticket

https://app.asana.com/0/1200011502754281/1200578828969029

zongUMR commented 2 years ago

Does logs command need this feature?

timqian commented 2 years ago

@zongUMR This PR is only for invoke and invoke local which are only related to SCF-related components. We can discuss later if we want to add similar behavior to commands like logs, dev, and other general commands.