30 Commits

Author SHA1 Message Date
Max Marze
893bfa7aef
chore: update eslint & prettier (#12553) 2024-05-29 11:51:04 -04:00
Austen
158f644cd0
feat: Refactor logging to reduce complexity (#12432)
* chore: Change logger

* chore: continue refactor

* chore: WIP

* chore: Sync
2024-04-17 13:26:31 -07:00
Max Marze
90206fa567
fix: use path.join & minified shim in dev mode (#12408) 2024-04-01 20:39:18 -04:00
Austen Collins
ab1970612a fix: Option parsing 2024-03-07 16:28:56 -08:00
Austen Collins
2b629775ec fix: Support for global options 2024-03-07 11:48:34 -08:00
Austen Collins
4eb92f85f0 chore: Remove direct process.argv reads 2024-03-07 10:42:49 -08:00
Austen
4fa39b8a80
chore: remove unnecessary files and rework variable resolution (#12340) 2024-01-31 14:50:04 -08:00
Piotr Grzesik
dd421cc8a6
fix(CLI): Ensure proper resolution of options for service commands (#10846) 2022-03-14 15:50:21 +01:00
Mariusz Nowak
da0e4637f3 refactor(CLI): Seclude paramRegExp 2022-01-27 15:21:58 +01:00
Mariusz Nowak
eedaa2469f feat(CLI): Simplify CLI args parsing to <command> <options> format
BREAKING CHANGE:
CLI params put before command tokens are no longer recgonized (e.g. `sls -f <function-name> deploy function` will no longer work). In all cases construct CLI args in `sls <command> <options>` order
2022-01-27 15:21:58 +01:00
Ikko Ashimine
9a03116899
chore: Fix typo in resolve-input.js (#9554)
intially -> initially
2021-06-07 13:47:24 +02:00
Mariusz Nowak
85b9e5319d fix(Telemetry): Ensure that container commands do not trigger telemetry 2021-04-29 17:38:38 +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
d9cf52b2c8 fix(CLI): Fix handling of container commands 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
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
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
d455b236cf refactor(CLI): Handle "help" with a schema 2021-03-22 15:31:17 +01:00
Mariusz Nowak
ad8f9b0597 fix(CLI): Do not show options order deprecation info with help request 2021-03-22 15:31:17 +01:00
Mariusz Nowak
23f45a34de refactor(CLI): Recognize "--version" on command as help request 2021-03-22 15:31:17 +01:00
Mariusz Nowak
a48117041c refactor(CLI): Integrate isHelpRequest into resolveInput util 2021-03-18 14:36:18 +01:00
lewgordon
a941e87cbf
fix(CLI): Recognize --env option for sls invoke local as multiple
(PR #9131)
2021-03-16 19:27:48 +01:00
Mariusz Nowak
fe663ead50 refactor(CLI): Resolve commands and options by schema 2021-03-16 09:34:33 +01:00
Mariusz Nowak
9ae604591d fix(CLI): Recognize "-s" as "--stage" alias, when expected 2021-02-24 22:01:42 +01:00
Mariusz Nowak
8db64a1f31 refactor(CLI): Refactor "-v" handling 2021-02-24 22:01:42 +01:00
Mariusz Nowak
e7edbcde8c refactor(CLI): Ensure alphabetical order 2021-02-24 22:01:42 +01:00
Mariusz Nowak
6b1921f59e refactor(CLI): Recognize "app" and "org" params 2021-02-24 22:01:42 +01:00
Mariusz Nowak
82b95fc492 fix(CLI): Ensure to recognize "-v" param as boolean in all cases 2021-02-18 09:56:07 +01:00
Mariusz Nowak
9e059d0f45 refactor(CLI): Rely on new CLI args parser 2021-02-11 14:01:41 +01:00