64 Commits

Author SHA1 Message Date
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
16950d098b refactor(CLI): Remove internal CLI arguments parsing 2021-02-11 14:01:41 +01:00
Mariusz Nowak
9e059d0f45 refactor(CLI): Rely on new CLI args parser 2021-02-11 14:01:41 +01:00
Piotr Grzesik
053bcc7624 fix: Properly resolve local version 2021-02-08 11:06:36 +01:00
Mariusz Nowak
f274cd7637 refactor: Seclude configuration parse from internals 2021-01-22 14:57:10 +01:00
Mariusz Nowak
b23bfdbf6a refactor(CLI): Seclude service config path resolution out of internals 2021-01-18 16:19:12 +01:00
Mariusz Nowak
e3c64a3f36 refactor: Improve dependencies handling 2021-01-18 16:19:12 +01:00
Mariusz Nowak
b61621adeb refactor(CLI): Seclude version output functionality out of CLI class 2021-01-11 15:57:02 +01:00
Mariusz Nowak
1019e60876 fix(CLI): Remove bluebird config
We're slowly migrating all code from it, so this functionality for sure no longer works as intended
2021-01-10 17:37:37 +01:00
Mariusz Nowak
847fa3412d feat: Seclude main error handler to standalone util 2021-01-08 15:06:14 +01:00