200 Commits

Author SHA1 Message Date
Mariusz Nowak
32013dc9bb refactor(CLI): Refactor flow into IIFE 2021-03-30 10:22:40 +02:00
Mariusz Nowak
eecd9285d5 refactor(Variables): Configure sls source in a new resolver 2021-03-30 10:22:40 +02:00
Mariusz Nowak
03817c23fb refactor(CLI): Rename module to unify convention 2021-03-26 10:11:57 +01:00
Mariusz Nowak
c2d4f834e5 refactor(CLI): Prevent superfluous vars resolution with help request 2021-03-26 10:11:57 +01:00
Mariusz Nowak
2eb61fc510 refactor(CLI): Render help out of internal context 2021-03-26 10:11:57 +01:00
Mariusz Nowak
8142515bfc refactor(CLI): Ensure to have up to date commands
When invoked by outdated global installation
2021-03-26 10:11:57 +01:00
Mariusz Nowak
9aa026d8f7 refactor(CLI): Recalculate options only if external plugins were loaded 2021-03-26 10:11:57 +01:00
Mariusz Nowak
01b135c69f fix(CLI): Ensure to expose accurate commandsSchema in resolved input 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
9e84423413 refactor(CLI): Improve validation of resolution state of core config 2021-03-24 11:50:24 +01:00
Mariusz Nowak
59434afd95 refactor(CLI): Generalize property resolution validation 2021-03-24 11:50:24 +01:00
Mariusz Nowak
13610cf0f0 refactor(Variables): Recognize only defined CLI options in resolver 2021-03-22 15:31:17 +01:00
Mariusz Nowak
b6382fdb7a refactor(CLI): Resolve command and options gradually
Against command schemas which we know are supported in given context
2021-03-22 15:31:17 +01:00
Mariusz Nowak
9ab04a6747 refactor(CLI): Proritize provider.name validation 2021-03-22 15:31:17 +01:00
Mariusz Nowak
cfe83df174 refactor(Variables): Smarter "is property resolved" validation 2021-03-22 15:31:17 +01:00
Mariusz Nowak
4364acca58 refactor(CLI): Return resolved commandSchema from resolveInput util 2021-03-22 15:31:17 +01:00
Mariusz Nowak
362f5e94e0 refactor(CLI): Expose resolved string command by resolveInput util 2021-03-22 15:31:17 +01:00
Mariusz Nowak
ee01833df8 refactor(Variables): Report immediatelly eventual syntax errors 2021-03-18 14:36:18 +01:00
Mariusz Nowak
851c9f4d52 refactor(CLI): Improve flow documentation 2021-03-18 14:36:18 +01:00
Mariusz Nowak
f67d95a553 feat(Variables): Meaningfully reject not resolvable provider.name 2021-03-18 14:36:18 +01:00
Mariusz Nowak
d851914a44 feat(Variables): For --help output resolve just needed properties
`provider.name` and `plugins` specifically
2021-03-18 14:36:18 +01:00
Mariusz Nowak
a537856651 refactor(Variables): Smarter resolution phases 2021-03-18 14:36:18 +01:00
Mariusz Nowak
ab1c673bb2 refactor(CLI): Improve setup of resolution flow 2021-03-18 14:36:18 +01:00
Mariusz Nowak
5a2da444ea feat(Variables): Disallow provider.variableSyntax with new resolver 2021-03-18 14:36:18 +01:00
Mariusz Nowak
a72b681635 refactor(CLI): Do not show deprecation with help command 2021-03-18 14:36:18 +01:00
Mariusz Nowak
d15efd9108 refactor(CLI): Do not throw errors when help command 2021-03-18 14:36:18 +01:00
Mariusz Nowak
8d44a49e59 refactor(CLI): Improve condition 2021-03-18 14:36:18 +01:00
Mariusz Nowak
ab055a3390 refactor(CLI): Wrap with function for better maintainance 2021-03-18 14:36:18 +01:00
Mariusz Nowak
a48117041c refactor(CLI): Integrate isHelpRequest into resolveInput util 2021-03-18 14:36:18 +01:00
Mariusz Nowak
e01dfacd83 refactor(CLI): Do not read service config for service unrelated commands 2021-03-16 09:34:33 +01:00
Mariusz Nowak
8b301dce9c refactor(CLI): Generalize handling of not supported commands 2021-03-16 09:34:33 +01:00
Mariusz Nowak
524c43df75 refactor(Variables): Improve source fulfillment handling 2021-03-09 12:05:59 +01:00
Mariusz Nowak
aa9dc0a8dc fix(CLI): Fix dashboard error handler error reporting 2021-03-05 16:20:03 +01:00
Mariusz Nowak
5565047382 fix(Variables): Report with meaningful error unresolved "plugins" 2021-03-03 13:13:36 +01:00
Mariusz Nowak
390e7d5f15 refactor(Variables): Improve error wording 2021-03-03 13:13:36 +01:00
Mariusz Nowak
c1d8b58ed8 refactor(Variables): Resolve all env variables with new resolver 2021-03-02 13:54:16 +01:00
Mariusz Nowak
452fdc2445 refactor(Variables): Make resolution error handler reusable 2021-03-02 13:54:16 +01:00
Mariusz Nowak
8e722472cc refactor(Variables): Make resolverConfiguration reusable 2021-03-02 13:54:16 +01:00
Mariusz Nowak
14ea1af886 refactor(Variables): Do not handle resolution when no vars to resolve 2021-03-02 13:54:16 +01:00
Mariusz Nowak
7aac480fbb refactor(Variables): Do not run old resolver when no vars to resolve 2021-03-02 13:54:16 +01:00
Mariusz Nowak
2f62bdf231 fix(CLI): Do not duplicate variables error information 2021-02-26 12:07:36 +01:00
Mariusz Nowak
b848e3951b refactor(CLI): Split inline strings so code fits 100 width 2021-02-25 16:57:11 +01:00
Mariusz Nowak
a488000dc6 refactor(CLI): Require variablesResolutionMode to be resolved upfront 2021-02-25 16:57:11 +01:00
Mariusz Nowak
cf431984fc refactor(CLI): Document processs flow 2021-02-25 16:57:11 +01:00
Mariusz Nowak
a9e3a66735 refactor(CLI): Resolve .env files before intializing Serverless instance 2021-02-25 16:57:11 +01:00
Mariusz Nowak
e5307b05d3 feat(Variables): Communicate not accessible "provider" properties 2021-02-24 22:59:22 +01:00
Mariusz Nowak
1ccb19b43a feat(Variables): First phase of variables resolution 2021-02-24 12:15:28 +01:00
Piotr Grzesik
ed609781ca fix: Ensure that list-version is invoked 2021-02-15 21:37:25 +01:00
Mariusz Nowak
4c7e59bf09 refactor: Rely on internal CLI args parser 2021-02-11 14:01:41 +01:00