Piotr Grzesik
217b9751ea
refactor: Revert bluebird from lib/plugins/interactiveCli
...
This reverts commit 7c0ceb5c4a1171666e381ef9a00c6f133569732b.
2021-03-04 11:06:44 +01:00
Juanjo Diaz
7c0ceb5c4a
refactor: Remove bluebird from lib/plugins/interactiveCli ( #9029 )
2021-03-01 11:54:18 +01:00
Sudipto Das
9abe9db27f
refactor: Replace fse.exists with fs.promises.access ( #8788 )
2021-01-24 14:31:08 +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
293cd6d0e2
fix(CLI): Ensure to not follow with project setup on existing path
2021-01-18 16:19:12 +01:00
Mariusz Nowak
adc4e2f8cf
refactor(CLI): Refactor to async/await
2021-01-18 16:19:12 +01:00
Mariusz Nowak
76fa62da3b
fix(CLI): Fix configuration of a new service in interactive setup
2021-01-18 16:19:12 +01:00
Mariusz Nowak
cf7b25e458
style: Upgrade "prettier" to v2
2021-01-04 16:21:24 +01:00
Mariusz Nowak
3808471972
test: Move unit tests to "test/unit" folder
2020-11-30 16:53:52 +01:00
Mariusz Nowak
2c4fa7baec
feat(CLI): Add auto update config step to interactive setup
2020-10-29 12:28:11 +01:00
Mariusz Nowak
b8ddd2553d
test: Upgrade to @serverless/test v6.1
2020-10-29 12:28:11 +01:00
Mariusz Nowak
ef39e958db
refactor: Upgrade "@serverless/utils" to v2
...
Drop "@serverless/inquirer" dependency
2020-09-23 15:14:25 +02:00
Mariusz Nowak
738c52f6e5
fix: Workaround config schema error on project initialization
...
It's a temporary patch until #8257 is properly solved
2020-09-16 15:34:08 +02:00
Mariusz Nowak
3177e40cee
fix: Ensure to memoize config file resolution by instance
...
Memoizing by service name doesn't work when test configuration changes in same process
2020-09-14 14:15:12 +02:00
Christian Musa
33eef9f06b
feat(CLI): Remove "slss", "serverless" command alias ( #8161 )
...
BREAKING CHANGE:
`slss` alias for `serverless` CLI ommand was removed. Rely on `sls` instead
2020-09-10 13:26:17 +02:00
Mariusz Nowak
8c3c7c4e3a
chore: Rename "tests" folder to "test"
...
Also upgrade @serverless/eslint-config to v2
2020-08-28 16:22:09 +02:00
Mariusz Nowak
96afed438c
refactor: Switch to @serverless/util/config
2020-06-16 10:59:59 +02:00
Ahmad Mahmoud Mohammad
4724cb8eeb
refactor: Replace inquirer with @serverless/inquirer ( #7729 )
2020-05-26 10:12:24 +02:00
Kenan Christian Dimas
c106d53638
refactor: Upgrade 'fs-extra' to v8 ( #7719 )
2020-05-13 16:16:17 +02:00
Mariusz Nowak
c900900488
feat: Unconditionally display browser url
2019-12-17 08:42:57 +01:00
Mariusz Nowak
1e87d5856d
test: Upgrade to @serverless/test v3
2019-12-12 14:27:40 +01:00
Daniel Schep
d11ff1e316
Allow --app & --org cli option in interactive CLI ( #6697 )
...
* Allow plugins to add flags that are allowed during interactive CLI
* simpler return, comment, & move setting sls.interactiveCli
* allow listof starter pr ojects to be customized
* docs!
* lint
* remove return and hide interacive cli "command"
* expose whole initializeService module like aws is
* update copy
* 🤦
* make it easier to update initalizeprojectChoices, avoiding ugly inplace updates
* bump sfe dep
* version bump
* Revert "version bump"
This reverts commit 4c9449136e00ce195b9c119f983845aec26c3693.
2019-10-23 15:52:27 -04:00
Mariusz Nowak
535e373c6d
Ensure inquirer stubs are reset after each test
2019-10-16 14:28:08 +02:00
Mariusz Nowak
6ac33363d9
Ensure test runs in isolated environment
2019-10-16 11:38:41 +02:00
Mariusz Nowak
6005e57a11
Run sanity test in non supported environments
2019-10-16 10:10:52 +02:00
Mariusz Nowak
508039151e
Ensure to test tab completion only in supported environments
2019-10-15 17:52:14 +02:00
Mariusz Nowak
1cf186ea8b
Improve sinon stubs handling
2019-10-15 17:24:14 +02:00
Mariusz Nowak
83acd6653a
Simplify plugin paths handling
2019-10-15 17:21:57 +02:00
Mariusz Nowak
33bb0666cd
Interactive CLI tab completion setup step
2019-10-15 17:16:55 +02:00
Mariusz Nowak
c876123192
Improve message for Windows users
2019-09-24 12:49:21 +02:00
Mariusz Nowak
2586ac518e
Check for predefined credentials upfront
2019-09-23 15:56:14 +02:00
Mariusz Nowak
873f65c366
Improve consistency of return type
2019-09-23 15:56:13 +02:00
Mariusz Nowak
22aaeacac0
Improve message formatting
2019-09-23 15:56:13 +02:00
Mariusz Nowak
36a1102aeb
Seclude writeOnSetupSkip
2019-09-23 15:56:13 +02:00
Mariusz Nowak
dfac42eb54
Expose setupAws configuration
...
To enable customization in dashboard plugin
2019-09-23 15:56:13 +02:00
Mariusz Nowak
d0052e7651
Modularize setup AWS interactive CLI step
...
So it can be customized by dashboard plugin
2019-09-23 15:56:12 +02:00
Mariusz Nowak
814accb50d
Upgrade to @serverless/test v2.0.0
2019-09-19 15:34:12 +02:00
Mariusz Nowak
7eeb16a468
Rely on @serverless/test/configure-inquirer-stub
2019-09-13 16:53:47 +02:00
Mariusz Nowak
b2ead19255
Ensure process is seen as TTY for test run
2019-09-05 17:39:08 +02:00
Mariusz Nowak
b294b73c29
Cleanup test configuration
2019-09-05 16:12:50 +02:00
Mariusz Nowak
1872930b94
Tests for an interactive CLI
2019-09-05 16:12:50 +02:00
Mariusz Nowak
993688fd14
inquirer stub generator
2019-09-05 16:12:50 +02:00
Mariusz Nowak
bb12637b59
Improve prompt names (to make testing easier)
2019-09-05 16:12:49 +02:00
Mariusz Nowak
9f784a61bb
Introduce 'name' option to improve test capabilities
2019-09-05 16:12:48 +02:00
Mariusz Nowak
c12808b2d2
Fix inquirers chalk hack
2019-09-02 14:02:21 +02:00
Daniel Schep
843650d8b0
Interactive CLI interactive hook ( #6549 )
...
* PLAT-1391 - add interactiveCli:end lifecycle hook
2019-08-26 08:37:43 -04:00
Daniel Schep
c44f9faf95
lint
2019-07-26 09:31:57 -04:00
Daniel Schep
e6367e0f6f
Imporove interactive AWS creds flow
...
closes PLAT-1341
implemented by asking if the user has an account, if not, open browser to sign up
and then open browser (in new or existing acct case) to create an admin user for
user with serverless.
added open as a dependency to open the browser
2019-07-25 13:30:43 -04:00
Daniel Schep
30b9395d31
PLAT-1390 - check for cached creds in interactive setupAws
...
because this is how the sfe plugin sets creds
2019-07-24 15:21:00 -04:00