48 Commits

Author SHA1 Message Date
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
Maciej Skierkowski
0d44aaca0a Use slss.io for links 2019-07-22 13:02:30 -04:00
Alex DeBrie
1344791329
Update initializeService.js 2019-07-18 19:09:21 -05:00
Daniel Schep
4b82dce66b actually update the right aws creds link interactive setup aws 2019-07-17 17:21:18 -04:00
Daniel Schep
2ea13d5fec
If user has no profiles, always create them the default profile (#6378)
If user has no profiles, always create them the default profile
2019-07-16 14:42:19 -04:00
Mariusz Nowak
bdb3af6e8c
Merge pull request #6387 from serverless/fix-aws-secret-key-validation
Fix AWS secret access key validation in interactive CLI
2019-07-16 16:32:57 +02:00
Mariusz Nowak
304a2b79c0
Fix AWS secret access key validation
Allow '+' chars
2019-07-16 16:02:45 +02:00
Daniel Schep
7fd05bb295 remove unused regex 2019-07-16 08:59:39 -04:00
Daniel Schep
3da3825bed if user has no profiles, always create them the default profile 2019-07-15 16:18:46 -04:00
Daniel Schep
56620e6a88 Log message out when user says no to aws setup 2019-07-15 16:15:08 -04:00
Mariusz Nowak
1b4db7c35b
Fix interactiveCli injection 2019-07-12 10:32:37 +02:00
Mariusz Nowak
c14cece26a
Update AWS setup doc link 2019-07-10 09:36:38 +02:00
Mariusz Nowak
858dc22690
Expose customized inquirer for other plugins 2019-07-08 22:41:24 +02:00
Mariusz Nowak
f1526d0552
Improve style 2019-07-08 22:25:09 +02:00
Mariusz Nowak
3fdd9b2866
Improve question (remove redundand wording 2019-07-08 22:19:31 +02:00
Mariusz Nowak
96f76a2478
Style inquirer 2019-07-08 22:19:12 +02:00
Mariusz Nowak
4cccb85c87
Fix AWS setup link 2019-07-08 16:47:09 +02:00
Mariusz Nowak
1f96c48cb1
Configure sanity test 2019-07-02 11:01:06 +02:00
Mariusz Nowak
9ca7b4c2da
Rely on more natural array content check 2019-07-02 11:00:35 +02:00
Mariusz Nowak
4a2b112aa8
Rename installTemplate into createFromTemplate 2019-07-02 10:25:32 +02:00
Mariusz Nowak
23b5bcfdea
Reconfigure interactive CLI into core plugin 2019-06-28 13:33:16 +02:00