@datacamp/learn-vm-scripts 0.0.1-rc.0 → 0.0.1-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -7
- package/dist/index.cjs +96559 -0
- package/package.json +14 -8
- package/dist/index.js +0 -38
package/README.md
CHANGED
|
@@ -31,16 +31,28 @@ The `.env.development` file should be updated with the values of your local Chro
|
|
|
31
31
|
|
|
32
32
|
## Usage
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
This project contains a program that logs in to a cloud provider using Puppeteer.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
- `--username`: The username for login.
|
|
38
|
-
- `--password`: The password for login.
|
|
36
|
+
To build:
|
|
39
37
|
|
|
40
|
-
|
|
38
|
+
```sh
|
|
39
|
+
yarn build
|
|
40
|
+
```
|
|
41
41
|
|
|
42
|
-
To
|
|
42
|
+
To start the file watcher:
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
yarn cli -- --
|
|
45
|
+
yarn cli -- --inputFilePath <path-to-input-file> --outputFilePath <path-to-output-file>
|
|
46
46
|
```
|
|
47
|
+
|
|
48
|
+
The program watches the input file for changes.
|
|
49
|
+
To log in to a cloud provider, write the following JSON object to the input file:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{ "url": "<url-to-login-page>", "username": "<your-username>", "password": "<your-password>", "cloudProvider": "<cloud-provider>"}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
❗️The input has to be written to a single line.
|
|
56
|
+
Each line is parsed individually.
|
|
57
|
+
|
|
58
|
+
When the login process is complete, the program writes a line to the output file.
|