101 Commits

Author SHA1 Message Date
Piotr Grzesik
dee54ed55c feat(CLI Onboarding): Present default project name if possible 2021-05-19 16:48:40 +02:00
Piotr Grzesik
f1a288ce2c feat(CLI Onboarding): Support template and template-url options 2021-05-19 14:58:19 +02:00
Mariusz Nowak
07d5b9c19e refactor(Telemetry): Report error location for non-normative error codes 2021-05-19 13:16:42 +02:00
Piotr Grzesik
da7a70d83f feat(CLI Onboarding): Remove serverless.template.yml from template 2021-05-17 15:55:23 +02:00
Piotr Grzesik
acc9010d79 feat(CLI Onboarding): Run npm i after fetching template 2021-05-17 15:55:23 +02:00
Piotr Grzesik
e4ea50d401 feat(CLI Onboarding): Fetch templates from serverless/examples 2021-05-17 15:55:23 +02:00
Piotr Grzesik
7e8e1b62bb feat(CLI Onboarding): Dont allow setup with options in service dir 2021-05-14 14:17:19 +02:00
Piotr Grzesik
e63302bcb5 feat(CLI Onboarding): Skip "enable" question when options provided 2021-05-14 14:17:19 +02:00
Piotr Grzesik
53575dc360 feat(CLI Onboarding): Support --name CLI option 2021-05-14 14:17:19 +02:00
Piotr Grzesik
98c9700bcd feat(CLI Onboarding): Support template-path param 2021-05-14 14:17:19 +02:00
Piotr Grzesik
9eea885b39 refactor(CLI Onboarding): Add history and stepHistory to context 2021-05-14 13:46:29 +02:00
Mariusz Nowak
7047c34929 fix(CLI): Fallback to local version only if we're not in its context 2021-05-13 13:06:33 +02:00
Mariusz Nowak
105807a674 refactor(CLI Onboarding): Integrate steps from dashboard plugin 2021-05-12 12:41:30 +02:00
Mariusz Nowak
1060d1468b refactor(CLI Onboarding): Refactor to async/await 2021-05-12 12:41:30 +02:00
Mariusz Nowak
7864f4d28d refactor(CLI Onboarding): Seclude from internal Framework logic 2021-05-12 12:41:30 +02:00
Mariusz Nowak
4f6a50a2e1 refactor(Telemetry): Make generatePayload serverless independent 2021-05-12 12:41:30 +02:00
Piotr Grzesik
bbfe742b24 fix(CLI): Correctly resolve version during local fallback 2021-05-11 13:40:55 +02:00
Mariusz Nowak
2672047c2f refactor: Resolve path to package in resolveLocalServerlessPath 2021-05-11 08:57:29 +02:00
Mariusz Nowak
fa8c076c56 fix(CLI): Fix local installation fallback
Older versions expose just `serverless.isInvokedByGlobalInstallation` property, not `serverless._isInvokedByGlobalInstallation`
2021-05-11 08:57:29 +02:00
Mariusz Nowak
4d077d1653 fix(Telemetry): Let old versions report telemetry old way 2021-05-11 08:57:29 +02:00
Mariusz Nowak
8d56d0e520 style: Prettier 2021-05-10 13:07:44 +02:00
Piotr Grzesik
2c2c77f905 fix(Telemetry): Do not report when commandSchema not resolved 2021-05-04 17:50:41 +02:00
Mariusz Nowak
132c830b0a fix(CLI): Ensure no general help is listed under interactive setup help 2021-04-30 13:35:15 +02:00
Piotr Grzesik
5861d08768 feat(Telemetry): Report failures via telemetry 2021-04-30 11:54:29 +02:00
Mariusz Nowak
85b9e5319d fix(Telemetry): Ensure that container commands do not trigger telemetry 2021-04-29 17:38:38 +02:00
Piotr Grzesik
07a5483bb6 refactor(CLI): Pass serverless instance to handle-error 2021-04-28 09:42:47 +02:00
Piotr Grzesik
11e7311032 refactor: Introduce is-using-local-installation util 2021-04-27 17:46:19 +02:00
Mariusz Nowak
014ff949b7 fix(CLI): Recognize --aws-profile option by schema 2021-04-19 16:46:53 +02:00
Mariusz Nowak
87d380275b refactor: Replace config.servicePath with service.dir 2021-04-16 13:32:13 +02:00
Mariusz Nowak
088088c1d3 refactor(CLI): Validate service dependency in CLI context 2021-04-14 09:56:42 +02:00
Mariusz Nowak
2011649537 refactor: Remove injustified "eslint-disable" comments 2021-04-02 15:05:03 +02:00
Mariusz Nowak
959da67a5e feat(Plugins): Announce "type" requirement in CLI option definitions 2021-04-02 13:04:48 +02:00
Mariusz Nowak
c9be9bcc45 fix(CLI): Do not assume "string" param type, when not type set
Plugins do not set "type" on options they propose, and if they're boolean options, treating them as strings breaks handling
2021-04-02 13:04:48 +02:00
Mariusz Nowak
7f788d29e5 refactor(CLI): Fix deprecation message typo 2021-03-31 13:18:03 +02:00
Mariusz Nowak
03817c23fb refactor(CLI): Rename module to unify convention 2021-03-26 10:11:57 +01:00
Mariusz Nowak
053fea18e0 refactor(CLI): Move main help renderer out of internals 2021-03-26 10:11:57 +01:00
Mariusz Nowak
d9cf52b2c8 fix(CLI): Fix handling of container commands 2021-03-26 10:11:57 +01:00
Mariusz Nowak
afad2315a5 refactor(CLI): Move to CLI logic required options validation 2021-03-26 10:11:57 +01:00
Mariusz Nowak
aca3c0d57d refactor(CLI): Seclude command help render from internals 2021-03-26 10:11:57 +01:00
Mariusz Nowak
87b186113a refactor(CLI): Seclude general help render logic from internals 2021-03-26 10:11:57 +01:00
Mariusz Nowak
2fd921dbfc refactor(CLI): Seclude interactive setup help render out of internals 2021-03-26 10:11:57 +01:00
Mariusz Nowak
41e921aa6f refactor(CLI): Seclude command options render logic out of internals 2021-03-26 10:11:57 +01:00
Mariusz Nowak
64684f2ed5 fix(CLI): Ensure to copy and not modify preset schemas
While modyfing should not be problematic for regular usage, it introduces unexpected states to tests which test multiple runs in same process run
2021-03-26 10:11:57 +01:00
Mariusz Nowak
f1af86ab55 fix(CLI): Unconditionally crash on unrecognized command
As we cannot display any help for unrecognized command, obviously
2021-03-26 10:11:57 +01:00
Mariusz Nowak
ae645e7e8e fix(CLI): Fix generate-event and test commands schema visibility 2021-03-26 10:11:57 +01:00
Mariusz Nowak
2dacbcce85 feat(CLI): Validate command and options against resolved schema 2021-03-24 11:50:24 +01:00
Mariusz Nowak
3422a121d7 feat(Variables): Recognize CLI command plugin extensions in new resolver 2021-03-24 11:50:24 +01:00
Mariusz Nowak
57543a9c64 refactor(CLI): Put least significant options to end of index 2021-03-24 11:50:24 +01:00
Mariusz Nowak
2294a4b4cb refactor(CLI): Move lifecycles definition to commands schema
It's needed to be able to process commands as introduced by plugins without a need of processing Serverless instance
2021-03-24 11:50:24 +01:00
Mariusz Nowak
031ca4dd2a fix(CLI): Ensure all expected command schemas in collections 2021-03-23 10:22:37 +01:00